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

Jean-Noel Rouvignac
07.12.2015 90a6ab6c63699343acf3adcd4346bce2f5665bdd
opendj-server-legacy/src/main/java/org/opends/server/backends/jeb/DatabaseEnvironmentMonitor.java
@@ -90,21 +90,15 @@
    }
  }
  /**
   * The name of this monitor instance.
   */
  /** The name of this monitor instance. */
  private String name;
  /**
   * The root container to be monitored.
   */
  /** The root container to be monitored. */
  private RootContainer rootContainer;
  private int maxEntries = 1024;
  private boolean filterUseEnabled;
  private String startTimeStamp;
  private final HashMap<SearchFilter, FilterStats> filterToStats =
      new HashMap<SearchFilter, FilterStats>();
  private final HashMap<SearchFilter, FilterStats> filterToStats = new HashMap<>();
  private final AtomicInteger indexedSearchCount = new AtomicInteger();
  private final AtomicInteger unindexedSearchCount = new AtomicInteger();
@@ -120,8 +114,6 @@
    this.rootContainer = rootContainer;
  }
  /** {@inheritDoc} */
  @Override
  public void initializeMonitorProvider(MonitorProviderCfg configuration)
@@ -221,7 +213,7 @@
      return Collections.emptyList();
    }
    ArrayList<Attribute> monitorAttrs = new ArrayList<Attribute>();
    ArrayList<Attribute> monitorAttrs = new ArrayList<>();
    String jeVersion = JEVersion.CURRENT_VERSION.getVersionString();
    AttributeType versionType =
         DirectoryServer.getDefaultAttributeType("JEVersion");
@@ -233,7 +225,7 @@
    AttributeBuilder needReindex = new AttributeBuilder("need-reindex");
    for(EntryContainer ec : rootContainer.getEntryContainers())
    {
      List<DatabaseContainer> databases = new ArrayList<DatabaseContainer>();
      List<DatabaseContainer> databases = new ArrayList<>();
      ec.listDatabases(databases);
      for(DatabaseContainer dc : databases)
      {