From fd56366c63cf39c8a569b2efde31d2efd26b9a7f Mon Sep 17 00:00:00 2001
From: Ludovic Poitou <ludovic.poitou@forgerock.com>
Date: Fri, 11 Jan 2013 17:03:44 +0000
Subject: [PATCH] Fix for OPENDJ-670. Add an objectclass for the statistics entries under cn=monitor. The schema for this objectclass is also added in 02-config.ldif.

---
 opends/resource/schema/02-config.ldif                                  |  342 ++++++++++++++++++++++++++++++++++++++++++++++++
 opends/src/server/org/opends/server/protocols/ldap/LDAPStatistics.java |   33 +++-
 opends/src/server/org/opends/server/util/ServerConstants.java          |    9 +
 3 files changed, 369 insertions(+), 15 deletions(-)

diff --git a/opends/resource/schema/02-config.ldif b/opends/resource/schema/02-config.ldif
index e878311..557689b 100644
--- a/opends/resource/schema/02-config.ldif
+++ b/opends/resource/schema/02-config.ldif
@@ -22,7 +22,7 @@
 #
 #
 #      Copyright 2006-2010 Sun Microsystems, Inc.
-#      Portions Copyright 2010-2012 ForgeRock AS.
+#      Portions Copyright 2010-2013 ForgeRock AS.
 #      Portions Copyright 2011 profiq, s.r.o.
 #      Portions Copyright 2012 Manuel Gaupp
 #
@@ -3348,6 +3348,312 @@
   SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
   USAGE dSAOperation
   X-ORIGIN 'OpenDJ Directory Server' )
+attributeTypes: ( 1.3.6.1.4.1.36733.2.1.1.65
+  NAME 'connectionsEstablished'
+  EQUALITY integerMatch
+  SYNTAX 1.3.6.1.4.1.1466.115.121.1.27
+  SINGLE-VALUE
+  X-ORIGIN 'OpenDJ Directory Server' )
+attributeTypes: ( 1.3.6.1.4.1.36733.2.1.1.66
+  NAME 'connectionsClosed'
+  EQUALITY integerMatch
+  SYNTAX 1.3.6.1.4.1.1466.115.121.1.27
+  SINGLE-VALUE
+  X-ORIGIN 'OpenDJ Directory Server' )
+attributeTypes: ( 1.3.6.1.4.1.36733.2.1.1.67
+  NAME 'bytesRead'
+  EQUALITY integerMatch
+  SYNTAX 1.3.6.1.4.1.1466.115.121.1.27
+  SINGLE-VALUE
+  X-ORIGIN 'OpenDJ Directory Server' )
+attributeTypes: ( 1.3.6.1.4.1.36733.2.1.1.68
+  NAME 'bytesWritten'
+  EQUALITY integerMatch
+  SYNTAX 1.3.6.1.4.1.1466.115.121.1.27
+  SINGLE-VALUE
+  X-ORIGIN 'OpenDJ Directory Server' )
+attributeTypes: ( 1.3.6.1.4.1.36733.2.1.1.69
+  NAME 'ldapMessagesRead'
+  EQUALITY integerMatch
+  SYNTAX 1.3.6.1.4.1.1466.115.121.1.27
+  SINGLE-VALUE
+  X-ORIGIN 'OpenDJ Directory Server' )
+attributeTypes: ( 1.3.6.1.4.1.36733.2.1.1.70
+  NAME 'ldapMessagesWritten'
+  EQUALITY integerMatch
+  SYNTAX 1.3.6.1.4.1.1466.115.121.1.27
+  SINGLE-VALUE
+  X-ORIGIN 'OpenDJ Directory Server' )
+attributeTypes: ( 1.3.6.1.4.1.36733.2.1.1.71
+  NAME 'operationsAbandoned'
+  EQUALITY integerMatch
+  SYNTAX 1.3.6.1.4.1.1466.115.121.1.27
+  SINGLE-VALUE
+  X-ORIGIN 'OpenDJ Directory Server' )
+attributeTypes: ( 1.3.6.1.4.1.36733.2.1.1.72
+  NAME 'operationsInitiated'
+  EQUALITY integerMatch
+  SYNTAX 1.3.6.1.4.1.1466.115.121.1.27
+  SINGLE-VALUE
+  X-ORIGIN 'OpenDJ Directory Server' )
+attributeTypes: ( 1.3.6.1.4.1.36733.2.1.1.73
+  NAME 'operationsCompleted'
+  EQUALITY integerMatch
+  SYNTAX 1.3.6.1.4.1.1466.115.121.1.27
+  SINGLE-VALUE
+  X-ORIGIN 'OpenDJ Directory Server' )
+attributeTypes: ( 1.3.6.1.4.1.36733.2.1.1.74
+  NAME 'abandonRequests'
+  EQUALITY integerMatch
+  SYNTAX 1.3.6.1.4.1.1466.115.121.1.27
+  SINGLE-VALUE
+  X-ORIGIN 'OpenDJ Directory Server' )
+attributeTypes: ( 1.3.6.1.4.1.36733.2.1.1.75
+  NAME 'addRequests'
+  EQUALITY integerMatch
+  SYNTAX 1.3.6.1.4.1.1466.115.121.1.27
+  SINGLE-VALUE
+  X-ORIGIN 'OpenDJ Directory Server' )
+attributeTypes: ( 1.3.6.1.4.1.36733.2.1.1.76
+  NAME 'addResponses'
+  EQUALITY integerMatch
+  SYNTAX 1.3.6.1.4.1.1466.115.121.1.27
+  SINGLE-VALUE
+  X-ORIGIN 'OpenDJ Directory Server' )
+attributeTypes: ( 1.3.6.1.4.1.36733.2.1.1.77
+  NAME 'bindRequests'
+  EQUALITY integerMatch
+  SYNTAX 1.3.6.1.4.1.1466.115.121.1.27
+  SINGLE-VALUE
+  X-ORIGIN 'OpenDJ Directory Server' )
+attributeTypes: ( 1.3.6.1.4.1.36733.2.1.1.78
+  NAME 'bindResponses'
+  EQUALITY integerMatch
+  SYNTAX 1.3.6.1.4.1.1466.115.121.1.27
+  SINGLE-VALUE
+  X-ORIGIN 'OpenDJ Directory Server' )
+attributeTypes: ( 1.3.6.1.4.1.36733.2.1.1.79
+  NAME 'compareRequests'
+  EQUALITY integerMatch
+  SYNTAX 1.3.6.1.4.1.1466.115.121.1.27
+  SINGLE-VALUE
+  X-ORIGIN 'OpenDJ Directory Server' )
+attributeTypes: ( 1.3.6.1.4.1.36733.2.1.1.80
+  NAME 'compareResponses'
+  EQUALITY integerMatch
+  SYNTAX 1.3.6.1.4.1.1466.115.121.1.27
+  SINGLE-VALUE
+  X-ORIGIN 'OpenDJ Directory Server' )
+attributeTypes: ( 1.3.6.1.4.1.36733.2.1.1.81
+  NAME 'deleteRequests'
+  EQUALITY integerMatch
+  SYNTAX 1.3.6.1.4.1.1466.115.121.1.27
+  SINGLE-VALUE
+  X-ORIGIN 'OpenDJ Directory Server' )
+attributeTypes: ( 1.3.6.1.4.1.36733.2.1.1.82
+  NAME 'deleteResponses'
+  EQUALITY integerMatch
+  SYNTAX 1.3.6.1.4.1.1466.115.121.1.27
+  SINGLE-VALUE
+  X-ORIGIN 'OpenDJ Directory Server' )
+attributeTypes: ( 1.3.6.1.4.1.36733.2.1.1.83
+  NAME 'extendedRequests'
+  EQUALITY integerMatch
+  SYNTAX 1.3.6.1.4.1.1466.115.121.1.27
+  SINGLE-VALUE
+  X-ORIGIN 'OpenDJ Directory Server' )
+attributeTypes: ( 1.3.6.1.4.1.36733.2.1.1.84
+  NAME 'extendedResponses'
+  EQUALITY integerMatch
+  SYNTAX 1.3.6.1.4.1.1466.115.121.1.27
+  SINGLE-VALUE
+  X-ORIGIN 'OpenDJ Directory Server' )
+attributeTypes: ( 1.3.6.1.4.1.36733.2.1.1.85
+  NAME 'modifyRequests'
+  EQUALITY integerMatch
+  SYNTAX 1.3.6.1.4.1.1466.115.121.1.27
+  SINGLE-VALUE
+  X-ORIGIN 'OpenDJ Directory Server' )
+attributeTypes: ( 1.3.6.1.4.1.36733.2.1.1.86
+  NAME 'modifyResponses'
+  EQUALITY integerMatch
+  SYNTAX 1.3.6.1.4.1.1466.115.121.1.27
+  SINGLE-VALUE
+  X-ORIGIN 'OpenDJ Directory Server' )
+attributeTypes: ( 1.3.6.1.4.1.36733.2.1.1.87
+  NAME 'modifyDNRequests'
+  EQUALITY integerMatch
+  SYNTAX 1.3.6.1.4.1.1466.115.121.1.27
+  SINGLE-VALUE
+  X-ORIGIN 'OpenDJ Directory Server' )
+attributeTypes: ( 1.3.6.1.4.1.36733.2.1.1.88
+  NAME 'modifyDNResponses'
+  EQUALITY integerMatch
+  SYNTAX 1.3.6.1.4.1.1466.115.121.1.27
+  SINGLE-VALUE
+  X-ORIGIN 'OpenDJ Directory Server' )
+attributeTypes: ( 1.3.6.1.4.1.36733.2.1.1.89
+  NAME 'searchRequests'
+  EQUALITY integerMatch
+  SYNTAX 1.3.6.1.4.1.1466.115.121.1.27
+  SINGLE-VALUE
+  X-ORIGIN 'OpenDJ Directory Server' )
+attributeTypes: ( 1.3.6.1.4.1.36733.2.1.1.90
+  NAME 'searchOneRequests'
+  EQUALITY integerMatch
+  SYNTAX 1.3.6.1.4.1.1466.115.121.1.27
+  SINGLE-VALUE
+  X-ORIGIN 'OpenDJ Directory Server' )
+attributeTypes: ( 1.3.6.1.4.1.36733.2.1.1.91
+  NAME 'searchSubRequests'
+  EQUALITY integerMatch
+  SYNTAX 1.3.6.1.4.1.1466.115.121.1.27
+  SINGLE-VALUE
+  X-ORIGIN 'OpenDJ Directory Server' )
+attributeTypes: ( 1.3.6.1.4.1.36733.2.1.1.92
+  NAME 'searchResultEntries'
+  EQUALITY integerMatch
+  SYNTAX 1.3.6.1.4.1.1466.115.121.1.27
+  SINGLE-VALUE
+  X-ORIGIN 'OpenDJ Directory Server' )
+attributeTypes: ( 1.3.6.1.4.1.36733.2.1.1.93
+  NAME 'searchResultReferences'
+  EQUALITY integerMatch
+  SYNTAX 1.3.6.1.4.1.1466.115.121.1.27
+  SINGLE-VALUE
+  X-ORIGIN 'OpenDJ Directory Server' )
+attributeTypes: ( 1.3.6.1.4.1.36733.2.1.1.94
+  NAME 'searchResultsDone'
+  EQUALITY integerMatch
+  SYNTAX 1.3.6.1.4.1.1466.115.121.1.27
+  SINGLE-VALUE
+  X-ORIGIN 'OpenDJ Directory Server' )
+attributeTypes: ( 1.3.6.1.4.1.36733.2.1.1.95
+  NAME 'unbindRequests'
+  EQUALITY integerMatch
+  SYNTAX 1.3.6.1.4.1.1466.115.121.1.27
+  SINGLE-VALUE
+  X-ORIGIN 'OpenDJ Directory Server' )
+attributeTypes: ( 1.3.6.1.4.1.36733.2.1.1.96
+  NAME 'ds-mon-add-operations-total-count'
+  EQUALITY integerMatch
+  SYNTAX 1.3.6.1.4.1.1466.115.121.1.27
+  SINGLE-VALUE
+  X-ORIGIN 'OpenDJ Directory Server' )
+attributeTypes: ( 1.3.6.1.4.1.36733.2.1.1.97
+  NAME 'ds-mon-resident-time-add-operations-total-time'
+  EQUALITY integerMatch
+  SYNTAX 1.3.6.1.4.1.1466.115.121.1.27
+  SINGLE-VALUE
+  X-ORIGIN 'OpenDJ Directory Server' )
+attributeTypes: ( 1.3.6.1.4.1.36733.2.1.1.98
+  NAME 'ds-mon-search-operations-total-count'
+  EQUALITY integerMatch
+  SYNTAX 1.3.6.1.4.1.1466.115.121.1.27
+  SINGLE-VALUE
+  X-ORIGIN 'OpenDJ Directory Server' )
+attributeTypes: ( 1.3.6.1.4.1.36733.2.1.1.99
+  NAME 'ds-mon-resident-time-search-operations-total-time'
+  EQUALITY integerMatch
+  SYNTAX 1.3.6.1.4.1.1466.115.121.1.27
+  SINGLE-VALUE
+  X-ORIGIN 'OpenDJ Directory Server' )
+attributeTypes: ( 1.3.6.1.4.1.36733.2.1.1.100
+  NAME 'ds-mon-bind-operations-total-count'
+  EQUALITY integerMatch
+  SYNTAX 1.3.6.1.4.1.1466.115.121.1.27
+  SINGLE-VALUE
+  X-ORIGIN 'OpenDJ Directory Server' )
+attributeTypes: ( 1.3.6.1.4.1.36733.2.1.1.101
+  NAME 'ds-mon-resident-time-bind-operations-total-time'
+  EQUALITY integerMatch
+  SYNTAX 1.3.6.1.4.1.1466.115.121.1.27
+  SINGLE-VALUE
+  X-ORIGIN 'OpenDJ Directory Server' )
+attributeTypes: ( 1.3.6.1.4.1.36733.2.1.1.102
+  NAME 'ds-mon-unbind-operations-total-count'
+  EQUALITY integerMatch
+  SYNTAX 1.3.6.1.4.1.1466.115.121.1.27
+  SINGLE-VALUE
+  X-ORIGIN 'OpenDJ Directory Server' )
+attributeTypes: ( 1.3.6.1.4.1.36733.2.1.1.103
+  NAME 'ds-mon-resident-time-unbind-operations-total-time'
+  EQUALITY integerMatch
+  SYNTAX 1.3.6.1.4.1.1466.115.121.1.27
+  SINGLE-VALUE
+  X-ORIGIN 'OpenDJ Directory Server' )
+attributeTypes: ( 1.3.6.1.4.1.36733.2.1.1.104
+  NAME 'ds-mon-compare-operations-total-count'
+  EQUALITY integerMatch
+  SYNTAX 1.3.6.1.4.1.1466.115.121.1.27
+  SINGLE-VALUE
+  X-ORIGIN 'OpenDJ Directory Server' )
+attributeTypes: ( 1.3.6.1.4.1.36733.2.1.1.105
+  NAME 'ds-mon-resident-time-compare-operations-total-time'
+  EQUALITY integerMatch
+  SYNTAX 1.3.6.1.4.1.1466.115.121.1.27
+  SINGLE-VALUE
+  X-ORIGIN 'OpenDJ Directory Server' )
+attributeTypes: ( 1.3.6.1.4.1.36733.2.1.1.106
+  NAME 'ds-mon-delete-operations-total-count'
+  EQUALITY integerMatch
+  SYNTAX 1.3.6.1.4.1.1466.115.121.1.27
+  SINGLE-VALUE
+  X-ORIGIN 'OpenDJ Directory Server' )
+attributeTypes: ( 1.3.6.1.4.1.36733.2.1.1.107
+  NAME 'ds-mon-resident-time-delete-operations-total-time'
+  EQUALITY integerMatch
+  SYNTAX 1.3.6.1.4.1.1466.115.121.1.27
+  SINGLE-VALUE
+  X-ORIGIN 'OpenDJ Directory Server' )
+attributeTypes: ( 1.3.6.1.4.1.36733.2.1.1.108
+  NAME 'ds-mon-mod-operations-total-count'
+  EQUALITY integerMatch
+  SYNTAX 1.3.6.1.4.1.1466.115.121.1.27
+  SINGLE-VALUE
+  X-ORIGIN 'OpenDJ Directory Server' )
+attributeTypes: ( 1.3.6.1.4.1.36733.2.1.1.109
+  NAME 'ds-mon-resident-time-mod-operations-total-time'
+  EQUALITY integerMatch
+  SYNTAX 1.3.6.1.4.1.1466.115.121.1.27
+  SINGLE-VALUE
+  X-ORIGIN 'OpenDJ Directory Server' )
+attributeTypes: ( 1.3.6.1.4.1.36733.2.1.1.110
+  NAME 'ds-mon-moddn-operations-total-count'
+  EQUALITY integerMatch
+  SYNTAX 1.3.6.1.4.1.1466.115.121.1.27
+  SINGLE-VALUE
+  X-ORIGIN 'OpenDJ Directory Server' )
+attributeTypes: ( 1.3.6.1.4.1.36733.2.1.1.111
+  NAME 'ds-mon-resident-time-moddn-operations-total-time'
+  EQUALITY integerMatch
+  SYNTAX 1.3.6.1.4.1.1466.115.121.1.27
+  SINGLE-VALUE
+  X-ORIGIN 'OpenDJ Directory Server' )
+attributeTypes: ( 1.3.6.1.4.1.36733.2.1.1.112
+  NAME 'ds-mon-abandon-operations-total-count'
+  EQUALITY integerMatch
+  SYNTAX 1.3.6.1.4.1.1466.115.121.1.27
+  SINGLE-VALUE
+  X-ORIGIN 'OpenDJ Directory Server' )
+attributeTypes: ( 1.3.6.1.4.1.36733.2.1.1.113
+  NAME 'ds-mon-resident-time-abandon-operations-total-time'
+  EQUALITY integerMatch
+  SYNTAX 1.3.6.1.4.1.1466.115.121.1.27
+  SINGLE-VALUE
+  X-ORIGIN 'OpenDJ Directory Server' )
+attributeTypes: ( 1.3.6.1.4.1.36733.2.1.1.114
+  NAME 'ds-mon-extended-operations-total-count'
+  EQUALITY integerMatch
+  SYNTAX 1.3.6.1.4.1.1466.115.121.1.27
+  SINGLE-VALUE
+  X-ORIGIN 'OpenDJ Directory Server' )
+attributeTypes: ( 1.3.6.1.4.1.36733.2.1.1.115
+  NAME 'ds-mon-resident-time-extended-operations-total-time'
+  EQUALITY integerMatch
+  SYNTAX 1.3.6.1.4.1.1466.115.121.1.27
+  SINGLE-VALUE
+  X-ORIGIN 'OpenDJ Directory Server' )
 objectClasses: ( 1.3.6.1.4.1.26027.1.2.1
   NAME 'ds-cfg-access-control-handler'
   SUP top
@@ -5181,3 +5487,37 @@
   STRUCTURAL
   MAY ds-cfg-strict-format
   X-ORIGIN 'OpenDJ Directory Server' )
+objectClasses: ( 1.3.6.1.4.1.36733.2.1.2.13
+  NAME 'ds-connectionhandler-statistics-monitor-entry'
+  SUP ds-monitor-entry
+  STRUCTURAL
+  MAY ( connectionsEstablished $ connectionsClosed $ bytesRead $
+  bytesWritten $ ldapMessagesRead $ ldapMessagesWritten $
+  operationsAbandoned $ operationsInitiated $ operationsCompleted $
+  abandonRequests $ addRequests $ addResponses $ bindRequests $
+  bindResponses $ compareRequests $ compareResponses $ deleteRequests $
+  deleteResponses $ extendedRequests $ extendedResponses $
+  modifyRequests $ modifyResponses $ modifyDNRequests $ modifyDNResponses $
+  searchRequests $ searchOneRequests $ searchSubRequests $
+  searchResultEntries $ searchResultReferences $ searchResultsDone $
+  unbindRequests $ ds-mon-add-operations-total-count $
+  ds-mon-resident-time-add-operations-total-time $
+  ds-mon-search-operations-total-count $
+  ds-mon-resident-time-search-operations-total-time $
+  ds-mon-bind-operations-total-count $
+  ds-mon-resident-time-bind-operations-total-time $
+  ds-mon-unbind-operations-total-count $
+  ds-mon-resident-time-unbind-operations-total-time $
+  ds-mon-compare-operations-total-count $
+  ds-mon-resident-time-compare-operations-total-time $
+  ds-mon-delete-operations-total-count $
+  ds-mon-resident-time-delete-operations-total-time $
+  ds-mon-mod-operations-total-count $
+  ds-mon-resident-time-mod-operations-total-time $
+  ds-mon-moddn-operations-total-count $
+  ds-mon-resident-time-moddn-operations-total-time $
+  ds-mon-abandon-operations-total-count $
+  ds-mon-resident-time-abandon-operations-total-time $
+  ds-mon-extended-operations-total-count $
+  ds-mon-resident-time-extended-operations-total-time )
+  X-ORIGIN 'OpenDJ Directory Server' )
diff --git a/opends/src/server/org/opends/server/protocols/ldap/LDAPStatistics.java b/opends/src/server/org/opends/server/protocols/ldap/LDAPStatistics.java
index 26a3009..b05145d 100644
--- a/opends/src/server/org/opends/server/protocols/ldap/LDAPStatistics.java
+++ b/opends/src/server/org/opends/server/protocols/ldap/LDAPStatistics.java
@@ -23,7 +23,7 @@
  *
  *
  *      Copyright 2006-2010 Sun Microsystems, Inc.
- *      Portions Copyright 2012 ForgeRock AS
+ *      Portions Copyright 2012-2013 ForgeRock AS
  *
  */
 package org.opends.server.protocols.ldap;
@@ -32,6 +32,7 @@
 
 import static org.opends.messages.ProtocolMessages.*;
 import static org.opends.server.protocols.ldap.LDAPConstants.*;
+import static org.opends.server.util.ServerConstants.*;
 
 import java.util.ArrayList;
 
@@ -41,12 +42,7 @@
 import org.opends.server.api.MonitorProvider;
 import org.opends.server.config.ConfigException;
 import org.opends.server.core.DirectoryServer;
-import org.opends.server.types.Attribute;
-import org.opends.server.types.AttributeBuilder;
-import org.opends.server.types.AttributeType;
-import org.opends.server.types.AttributeValues;
-import org.opends.server.types.OperationType;
-
+import org.opends.server.types.*;
 
 
 /**
@@ -181,6 +177,16 @@
   }
 
 
+  /**
+   *
+   * {@inheritDoc}
+   */
+  @Override
+  public ObjectClass getMonitorObjectClass()
+  {
+      return DirectoryConfig.getObjectClass(OC_MONITOR_CONNHANDLERSTATS, true);
+  }
+
 
   /**
    * Retrieves a set of attributes containing monitor data that should
@@ -251,12 +257,16 @@
 
 
     // Construct the list of attributes to return.
+    /* TODO : the attribute names should be constant (in ServerConstants.java
+     *        and associated with their objectclass
+     *        OC_MONITOR_CONNHANDLERSTATS
+     */
     attrs.add(createAttribute("connectionsEstablished", String
         .valueOf(tmpConnectionsEstablished)));
     attrs.add(createAttribute("connectionsClosed", String
         .valueOf(tmpConnectionsClosed)));
-    attrs
-        .add(createAttribute("bytesRead", String.valueOf(tmpBytesRead)));
+    attrs.add(createAttribute("bytesRead", String
+        .valueOf(tmpBytesRead)));
     attrs.add(createAttribute("bytesWritten", String
         .valueOf(tmpBytesWritten)));
     attrs.add(createAttribute("ldapMessagesRead", String
@@ -302,9 +312,9 @@
     attrs.add(createAttribute("searchRequests", String
         .valueOf(tmpSearchRequests)));
     attrs.add(createAttribute("searchOneRequests", String
-            .valueOf(tmpSearchOneRequests)));
+        .valueOf(tmpSearchOneRequests)));
     attrs.add(createAttribute("searchSubRequests", String
-            .valueOf(tmpSearchSubRequests)));
+        .valueOf(tmpSearchSubRequests)));
     attrs.add(createAttribute("searchResultEntries", String
         .valueOf(tmpSearchEntries)));
     attrs.add(createAttribute("searchResultReferences", String
@@ -391,7 +401,6 @@
   }
 
 
-
   /**
    * Clears any statistical information collected to this point.
    */
diff --git a/opends/src/server/org/opends/server/util/ServerConstants.java b/opends/src/server/org/opends/server/util/ServerConstants.java
index 5fc7f66..2088786 100644
--- a/opends/src/server/org/opends/server/util/ServerConstants.java
+++ b/opends/src/server/org/opends/server/util/ServerConstants.java
@@ -23,7 +23,7 @@
  *
  *
  *      Copyright 2006-2010 Sun Microsystems, Inc.
- *      Portions Copyright 2010-2012 ForgeRock AS
+ *      Portions Copyright 2010-2013 ForgeRock AS
  */
 package org.opends.server.util;
 
@@ -1055,7 +1055,12 @@
    */
   public static final String OC_MONITOR_CONNHANDLER =
        "ds-connectionhandler-monitor-entry";
-
+  /**
+   * The name of the custom objectclass that will be included in connection
+   * handler statistics monitor entries.
+   */
+  public static final String OC_MONITOR_CONNHANDLERSTATS =
+          "ds-connectionhandler-statistics-monitor-entry";
 
 
   /**

--
Gitblit v1.10.0