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

Nicolas Capponi
22.58.2015 9defd2349274d077ad120d780a6fac5f6d594c7f
opendj-server-legacy/src/main/java/org/opends/server/monitors/ParallelWorkQueueMonitor.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;
@@ -114,6 +114,7 @@
  /** {@inheritDoc} */
  @Override
  public void initializeMonitorProvider(MonitorProviderCfg configuration)
         throws ConfigException, InitializationException
  {
@@ -131,6 +132,7 @@
   *
   * @return  The name of this monitor provider.
   */
  @Override
  public String getMonitorInstanceName()
  {
    return "Work Queue";
@@ -138,6 +140,7 @@
  /** {@inheritDoc} */
  @Override
  public void run()
  {
    int backlog = workQueue.size();
@@ -160,6 +163,7 @@
   *          returned to the client if the corresponding monitor entry is
   *          requested.
   */
  @Override
  public ArrayList<Attribute> getMonitorData()
  {
    int backlog = workQueue.size();
@@ -175,8 +179,7 @@
    long opsSubmitted = workQueue.getOpsSubmitted();
    ArrayList<Attribute> monitorAttrs = new ArrayList<Attribute>();
    AttributeSyntax<?> integerSyntax = DirectoryServer
        .getDefaultIntegerSyntax();
    Syntax integerSyntax = DirectoryServer.getDefaultIntegerSyntax();
    // The current backlog.
    AttributeType attrType = DirectoryServer.getDefaultAttributeType(