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

Nicolas Capponi
25.56.2015 821d2150765f0ab0ac6ccbbc9f397aa65186d590
opendj-server-legacy/src/main/java/org/opends/server/monitors/ConnectionHandlerMonitor.java
@@ -89,6 +89,7 @@
  /**
   * {@inheritDoc}
   */
  @Override
  public void initializeMonitorProvider(MonitorProviderCfg configuration)
  {
    monitorName = connectionHandler.getConnectionHandlerName();
@@ -119,6 +120,7 @@
  /**
   * {@inheritDoc}
   */
  @Override
  public String getMonitorInstanceName()
  {
    return monitorName;
@@ -133,6 +135,7 @@
   * @return  The objectclass that should be included in the monitor entry
   *          created from this monitor provider.
   */
  @Override
  public ObjectClass getMonitorObjectClass()
  {
    return DirectoryConfig.getObjectClass(OC_MONITOR_CONNHANDLER, true);
@@ -143,12 +146,13 @@
  /**
   * {@inheritDoc}
   */
  @Override
  public List<Attribute> getMonitorData()
  {
    LinkedList<Attribute> attrs = new LinkedList<Attribute>();
    // Configuration DN
    attrs.add(Attributes.create(configDnType, String.valueOf(connectionHandler.getComponentEntryDN().toString())));
    attrs.add(Attributes.create(configDnType, connectionHandler.getComponentEntryDN().toString()));
    int numConnections = 0;
    LinkedList<ClientConnection> conns = new LinkedList<ClientConnection>(