From d90a8f4889fdc359bfe5f089b937b303a4d58973 Mon Sep 17 00:00:00 2001
From: fguigues <fguigues@localhost>
Date: Fri, 12 Dec 2008 13:13:01 +0000
Subject: [PATCH] * Ability to create monitor provider with hierarchical naming * Modification of Network Monitor provider names (includes hierarchical naming) * Provide basic Monitoring objects. * Add monitoring instrumentation for the connection handlers. * Add the ability to do a subtree search in the monitor backend.
---
opends/src/server/org/opends/server/protocols/internal/InternalConnectionHandler.java | 14 +++++++++++++-
1 files changed, 13 insertions(+), 1 deletions(-)
diff --git a/opends/src/server/org/opends/server/protocols/internal/InternalConnectionHandler.java b/opends/src/server/org/opends/server/protocols/internal/InternalConnectionHandler.java
index 328e901..041e600 100644
--- a/opends/src/server/org/opends/server/protocols/internal/InternalConnectionHandler.java
+++ b/opends/src/server/org/opends/server/protocols/internal/InternalConnectionHandler.java
@@ -36,6 +36,7 @@
import org.opends.server.api.ClientConnection;
import org.opends.server.api.ConnectionHandler;
import org.opends.server.config.ConfigException;
+import org.opends.server.types.DN;
import org.opends.server.types.InitializationException;
import org.opends.server.types.HostPort;
@@ -67,6 +68,8 @@
// The name of the protocol for this connection handler.
private String protocol;
+ // Configuration object of the connection hanlder
+ private ConnectionHandlerCfg configuration;
/**
@@ -124,7 +127,7 @@
ConnectionHandlerCfg configuration)
throws ConfigException, InitializationException
{
- // No implementation required.
+ this.configuration = configuration;
}
@@ -269,5 +272,14 @@
InternalClientConnection.clearRootClientConnectionAtShutdown();
}
+ /**
+ * Return the configuration dn of the object.
+ * @return DN of the entry.
+ */
+ @Override()
+ public DN getComponentEntryDN() {
+ return this.configuration.dn();
+ }
+
}
--
Gitblit v1.10.0