From 4b46c259bc66195f4fc2aa78dce27f36899800c1 Mon Sep 17 00:00:00 2001
From: floblanc <floblanc@localhost>
Date: Wed, 29 Oct 2008 10:40:13 +0000
Subject: [PATCH] Implement a network group dedicated to the admin connector: - this network group is not configurable, and unbreakable - all connections handled by the admin connector are managed by this network group - all JMX connections are managed by this network group - this network group provides access to all private and public suffixes

---
 opendj-sdk/opends/src/server/org/opends/server/api/ConnectionHandler.java |   22 ++++++++++++++++++++++
 1 files changed, 22 insertions(+), 0 deletions(-)

diff --git a/opendj-sdk/opends/src/server/org/opends/server/api/ConnectionHandler.java b/opendj-sdk/opends/src/server/org/opends/server/api/ConnectionHandler.java
index 60a8719..694e63d 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/api/ConnectionHandler.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/api/ConnectionHandler.java
@@ -60,6 +60,9 @@
   // The monitor associated with this connection handler.
   private ConnectionHandlerMonitor monitor;
 
+  // Is this handler the admin connection handler
+  private boolean isAdminConnectionHandler = false;
+
 
 
   /**
@@ -239,6 +242,25 @@
 
 
   /**
+   * Sets this connection handler as the admin connection handler.
+   */
+  public void setAdminConnectionHandler() {
+    isAdminConnectionHandler = true;
+  }
+
+
+  /**
+   * Returns whether this connection handler is the admin
+   * connection handler.
+   * @return boolean True if this connection handler is the admin
+   *                 connection handler, false otherwise
+   */
+  public boolean isAdminConnectionHandler() {
+    return isAdminConnectionHandler;
+  }
+
+
+  /**
    * Retrieves a string representation of this connection handler.
    *
    * @return A string representation of this connection handler.

--
Gitblit v1.10.0