From 9460e3eb5f025af1dd4f5642046ac6ba5b92e39c Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Mon, 13 May 2013 12:35:26 +0000
Subject: [PATCH] OPENDJ-858 (CR-1651) Add stats tracking to HTTP client connections
---
opendj-sdk/opends/src/server/org/opends/server/protocols/ldap/LDAPStatistics.java | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/opendj-sdk/opends/src/server/org/opends/server/protocols/ldap/LDAPStatistics.java b/opendj-sdk/opends/src/server/org/opends/server/protocols/ldap/LDAPStatistics.java
index b8174f9..cac937a 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/protocols/ldap/LDAPStatistics.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/protocols/ldap/LDAPStatistics.java
@@ -35,8 +35,9 @@
import static org.opends.server.util.ServerConstants.*;
import java.util.ArrayList;
-
+import java.util.List;
import java.util.concurrent.atomic.AtomicLong;
+
import org.opends.messages.Message;
import org.opends.server.admin.std.server.MonitorProviderCfg;
import org.opends.server.api.MonitorProvider;
@@ -198,10 +199,9 @@
* is requested.
*/
@Override
- public ArrayList<Attribute> getMonitorData()
+ public List<Attribute> getMonitorData()
{
-
- ArrayList<Attribute> attrs = new ArrayList<Attribute>();
+ List<Attribute> attrs = new ArrayList<Attribute>();
long tmpAbandonRequests = abandonRequests.get();
long tmpAddRequests = addRequests.get();
@@ -662,7 +662,7 @@
* The value to use for the attribute.
* @return the constructed attribute.
*/
- private Attribute createAttribute(String name, String value)
+ protected Attribute createAttribute(String name, String value)
{
AttributeType attrType =
DirectoryServer.getAttributeType(name.toLowerCase());
--
Gitblit v1.10.0