| | |
| | | |
| | | if (monitorConfig.isEnabled()) |
| | | { |
| | | String className = monitorConfig.getMonitorClass(); |
| | | String className = monitorConfig.getJavaClass(); |
| | | try |
| | | { |
| | | MonitorProvider<? extends MonitorProviderCfg> monitor = |
| | |
| | | { |
| | | // Get the name of the class and make sure we can instantiate it as a |
| | | // monitor provider. |
| | | String className = configuration.getMonitorClass(); |
| | | String className = configuration.getJavaClass(); |
| | | try |
| | | { |
| | | loadMonitor(className, null); |
| | |
| | | |
| | | // Get the name of the class and make sure we can instantiate it as a |
| | | // monitor provider. |
| | | String className = configuration.getMonitorClass(); |
| | | String className = configuration.getJavaClass(); |
| | | try |
| | | { |
| | | monitor = loadMonitor(className, configuration); |
| | |
| | | { |
| | | // Get the name of the class and make sure we can instantiate it as a |
| | | // monitor provider. |
| | | String className = configuration.getMonitorClass(); |
| | | String className = configuration.getJavaClass(); |
| | | try |
| | | { |
| | | loadMonitor(className, null); |
| | |
| | | // changed then we'll at least need to indicate that administrative action |
| | | // is required. If the monitor is disabled, then instantiate the class and |
| | | // initialize and register it as a monitor provider. |
| | | String className = configuration.getMonitorClass(); |
| | | String className = configuration.getJavaClass(); |
| | | if (existingMonitor != null) |
| | | { |
| | | if (! className.equals(existingMonitor.getClass().getName())) |
| | |
| | | MonitorProviderCfgDefn definition = |
| | | MonitorProviderCfgDefn.getInstance(); |
| | | ClassPropertyDefinition propertyDefinition = |
| | | definition.getMonitorClassPropertyDefinition(); |
| | | definition.getJavaClassPropertyDefinition(); |
| | | Class<? extends MonitorProvider> providerClass = |
| | | propertyDefinition.loadClass(className, MonitorProvider.class); |
| | | MonitorProvider monitor = providerClass.newInstance(); |