From 9defd2349274d077ad120d780a6fac5f6d594c7f Mon Sep 17 00:00:00 2001
From: Nicolas Capponi <nicolas.capponi@forgerock.com>
Date: Fri, 22 May 2015 15:58:46 +0000
Subject: [PATCH] OPENDJ-1631 CR-6864 Migrate server to SDK syntaxes
---
opendj-server-legacy/src/main/java/org/opends/server/backends/jeb/DatabaseEnvironmentMonitor.java | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/backends/jeb/DatabaseEnvironmentMonitor.java b/opendj-server-legacy/src/main/java/org/opends/server/backends/jeb/DatabaseEnvironmentMonitor.java
index 5749e5f..d8d93ee 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/backends/jeb/DatabaseEnvironmentMonitor.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/backends/jeb/DatabaseEnvironmentMonitor.java
@@ -33,8 +33,8 @@
import org.forgerock.i18n.LocalizableMessage;
import org.forgerock.i18n.slf4j.LocalizedLogger;
import org.forgerock.opendj.config.server.ConfigException;
+import org.forgerock.opendj.ldap.schema.Syntax;
import org.opends.server.admin.std.server.MonitorProviderCfg;
-import org.opends.server.api.AttributeSyntax;
import org.opends.server.api.MonitorProvider;
import org.opends.server.core.DirectoryServer;
import org.opends.server.types.*;
@@ -65,6 +65,7 @@
private long maxMatchingEntries = -1;
private final AtomicInteger hits = new AtomicInteger();
+ @Override
public int compareTo(FilterStats that) {
return this.hits.get() - that.hits.get();
}
@@ -122,6 +123,7 @@
/** {@inheritDoc} */
+ @Override
public void initializeMonitorProvider(MonitorProviderCfg configuration)
throws ConfigException, InitializationException
{
@@ -133,6 +135,7 @@
*
* @return The name of this monitor provider.
*/
+ @Override
public String getMonitorInstanceName()
{
return name;
@@ -166,8 +169,7 @@
Class<?> returnType = method.getReturnType();
if (returnType.equals(int.class) || returnType.equals(long.class))
{
- AttributeSyntax<?> integerSyntax =
- DirectoryServer.getDefaultIntegerSyntax();
+ Syntax integerSyntax = DirectoryServer.getDefaultIntegerSyntax();
// Remove the 'get' from the method name and add the prefix.
String attrName = attrPrefix + method.getName().substring(3);
@@ -201,6 +203,7 @@
* returned to the client if the corresponding monitor entry is
* requested.
*/
+ @Override
public List<Attribute> getMonitorData()
{
EnvironmentStats environmentStats = null;
--
Gitblit v1.10.0