| | |
| | | * CDDL HEADER END |
| | | * |
| | | * |
| | | * Portions Copyright 2006 Sun Microsystems, Inc. |
| | | * Portions Copyright 2006-2007 Sun Microsystems, Inc. |
| | | */ |
| | | package org.opends.server.monitors; |
| | | |
| | |
| | | import org.opends.server.types.DN; |
| | | import org.opends.server.types.ObjectClass; |
| | | |
| | | import static org.opends.server.loggers.Debug.*; |
| | | import static org.opends.server.util.ServerConstants.*; |
| | | |
| | | |
| | |
| | | public class BackendMonitor |
| | | extends MonitorProvider |
| | | { |
| | | /** |
| | | * The fully-qualified name of this class for debugging purposes. |
| | | */ |
| | | private static final String CLASS_NAME = |
| | | "org.opends.server.monitors.BackendMonitor"; |
| | | |
| | | |
| | | |
| | |
| | | { |
| | | super(backend.getBackendID() + " Backend"); |
| | | |
| | | assert debugConstructor(CLASS_NAME, String.valueOf(backend)); |
| | | |
| | | this.backend = backend; |
| | | } |
| | |
| | | */ |
| | | public void initializeMonitorProvider(ConfigEntry configEntry) |
| | | { |
| | | assert debugEnter(CLASS_NAME, "initializeMonitorProvider", |
| | | String.valueOf(configEntry)); |
| | | |
| | | monitorName = backend.getBackendID() + " Backend"; |
| | | |
| | |
| | | */ |
| | | public String getMonitorInstanceName() |
| | | { |
| | | assert debugEnter(CLASS_NAME, "getMonitorInstanceName"); |
| | | |
| | | return monitorName; |
| | | } |
| | |
| | | */ |
| | | public ObjectClass getMonitorObjectClass() |
| | | { |
| | | assert debugEnter(CLASS_NAME, "getMonitorObjectClass"); |
| | | |
| | | return DirectoryConfig.getObjectClass(OC_MONITOR_BACKEND, true); |
| | | } |
| | |
| | | */ |
| | | public long getUpdateInterval() |
| | | { |
| | | assert debugEnter(CLASS_NAME, "getUpdateInterval"); |
| | | |
| | | // We don't need do anything on a periodic basis. |
| | | return 0; |
| | |
| | | */ |
| | | public void updateMonitorData() |
| | | { |
| | | assert debugEnter(CLASS_NAME, "updateMonitorData"); |
| | | |
| | | // No implementaiton is required. |
| | | } |
| | |
| | | */ |
| | | public List<Attribute> getMonitorData() |
| | | { |
| | | assert debugEnter(CLASS_NAME, "getMonitorData"); |
| | | |
| | | LinkedList<Attribute> attrs = new LinkedList<Attribute>(); |
| | | |