From fa6e5bb0c17c4d59d8598979feb1a7701bc32679 Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Tue, 12 Dec 2006 23:55:39 +0000
Subject: [PATCH] Publish a separate monitor entry for each connection handler, which includes the protocol, listen address/port, number of established connections, and information about each connection.
---
opends/src/server/org/opends/server/api/MonitorProvider.java | 24 ++++++++++++++++++++++++
1 files changed, 24 insertions(+), 0 deletions(-)
diff --git a/opends/src/server/org/opends/server/api/MonitorProvider.java b/opends/src/server/org/opends/server/api/MonitorProvider.java
index 9ea1f34..bc8dbe7 100644
--- a/opends/src/server/org/opends/server/api/MonitorProvider.java
+++ b/opends/src/server/org/opends/server/api/MonitorProvider.java
@@ -33,9 +33,12 @@
import org.opends.server.config.ConfigEntry;
import org.opends.server.config.ConfigException;
import org.opends.server.types.Attribute;
+import org.opends.server.types.DirectoryConfig;
import org.opends.server.types.InitializationException;
+import org.opends.server.types.ObjectClass;
import static org.opends.server.loggers.Debug.*;
+import static org.opends.server.util.ServerConstants.*;
@@ -149,6 +152,27 @@
/**
+ * Retrieves the objectclass that should be included in the monitor
+ * entry created from this monitor provider. This may be overridden
+ * by subclasses that wish to include their own custom objectclass
+ * in the monitor entry (e.g., to make it easier to search for
+ * monitor entries of that type). The default implementation
+ * returns the "extensibleObject" objectclass.
+ *
+ * @return The objectclass that should be included in the monitor
+ * entry created from this monitor provider.
+ */
+ public ObjectClass getMonitorObjectClass()
+ {
+ assert debugEnter(CLASS_NAME, "getMonitorObjectClass");
+
+ return DirectoryConfig.getObjectClass(OC_EXTENSIBLE_OBJECT_LC,
+ true);
+ }
+
+
+
+ /**
* Retrieves the length of time in milliseconds that should elapse
* between calls to the <CODE>updateMonitorData()</CODE> method. A
* negative or zero return value indicates that the
--
Gitblit v1.10.0