mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

fguigues
12.13.2008 d90a8f4889fdc359bfe5f089b937b303a4d58973
opends/src/server/org/opends/server/monitors/ConnectionHandlerMonitor.java
@@ -70,6 +70,9 @@
  // The attribute type that will be used to report the protocol.
  private AttributeType protocolType;
  // The attribute type that will be used to report the config dn .
  private AttributeType configDnType;
  // The connection handler with which this monitor is associated.
  private ConnectionHandler<?> connectionHandler;
@@ -118,6 +121,10 @@
    protocolType =
         DirectoryConfig.getAttributeType(ATTR_MONITOR_CONNHANDLER_PROTOCOL,
                                          true);
    configDnType =
         DirectoryConfig.getAttributeType(ATTR_MONITOR_CONFIG_DN,
                                          true);
  }
@@ -174,6 +181,10 @@
  {
    LinkedList<Attribute> attrs = new LinkedList<Attribute>();
    // Configuration DN
    attrs.add(Attributes.create(configDnType, String.valueOf(
            connectionHandler.getComponentEntryDN().toNormalizedString())));
    int numConnections = 0;
    LinkedList<ClientConnection> conns = new LinkedList<ClientConnection>(
        connectionHandler.getClientConnections());