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/monitors/TraditionalWorkQueueMonitor.java |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/opendj-server-legacy/src/main/java/org/opends/server/monitors/TraditionalWorkQueueMonitor.java b/opendj-server-legacy/src/main/java/org/opends/server/monitors/TraditionalWorkQueueMonitor.java
index 7e171b5..af7ea48 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/monitors/TraditionalWorkQueueMonitor.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/monitors/TraditionalWorkQueueMonitor.java
@@ -32,7 +32,7 @@
 import java.util.concurrent.TimeUnit;
 
 import org.opends.server.admin.std.server.MonitorProviderCfg;
-import org.opends.server.api.AttributeSyntax;
+import org.forgerock.opendj.ldap.schema.Syntax;
 import org.opends.server.api.MonitorProvider;
 import org.forgerock.opendj.config.server.ConfigException;
 import org.opends.server.core.DirectoryServer;
@@ -123,6 +123,7 @@
 
 
   /** {@inheritDoc} */
+  @Override
   public void initializeMonitorProvider(MonitorProviderCfg configuration)
          throws ConfigException, InitializationException
   {
@@ -140,6 +141,7 @@
    *
    * @return  The name of this monitor provider.
    */
+  @Override
   public String getMonitorInstanceName()
   {
     return "Work Queue";
@@ -147,6 +149,7 @@
 
 
   /** {@inheritDoc} */
+  @Override
   public void run()
   {
     int backlog = workQueue.size();
@@ -169,6 +172,7 @@
    *          returned to the client if the corresponding monitor entry is
    *          requested.
    */
+  @Override
   public ArrayList<Attribute> getMonitorData()
   {
     int backlog = workQueue.size();
@@ -185,8 +189,7 @@
     long rejectedQueueFull = workQueue.getOpsRejectedDueToQueueFull();
 
     ArrayList<Attribute> monitorAttrs = new ArrayList<Attribute>();
-    AttributeSyntax<?> integerSyntax = DirectoryServer
-        .getDefaultIntegerSyntax();
+    Syntax integerSyntax = DirectoryServer.getDefaultIntegerSyntax();
 
     // The current backlog.
     AttributeType attrType = DirectoryServer.getDefaultAttributeType(

--
Gitblit v1.10.0