| | |
| | | * CDDL HEADER END |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Copyright 2006-2010 Sun Microsystems, Inc. |
| | | */ |
| | | package org.opends.server.core; |
| | | import org.opends.messages.Message; |
| | |
| | | MonitorProvider<? extends MonitorProviderCfg> monitor = |
| | | loadMonitor(className, monitorConfig); |
| | | monitors.put(monitorConfig.dn(), monitor); |
| | | if (monitor.getUpdateInterval() > 0) |
| | | { |
| | | monitor.start(); |
| | | } |
| | | DirectoryServer.registerMonitorProvider(monitor); |
| | | } |
| | | catch (InitializationException ie) |
| | |
| | | if (resultCode == ResultCode.SUCCESS) |
| | | { |
| | | monitors.put(configuration.dn(), monitor); |
| | | if (monitor.getUpdateInterval() > 0) |
| | | { |
| | | monitor.start(); |
| | | } |
| | | DirectoryServer.registerMonitorProvider(monitor); |
| | | } |
| | | |
| | |
| | | if (resultCode == ResultCode.SUCCESS) |
| | | { |
| | | monitors.put(configuration.dn(), monitor); |
| | | if (monitor.getUpdateInterval() > 0) |
| | | { |
| | | monitor.start(); |
| | | } |
| | | DirectoryServer.registerMonitorProvider(monitor); |
| | | } |
| | | |