| | |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 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(); |
| | | |
| | |
| | | this.rootContainer = rootContainer; |
| | | } |
| | | |
| | | |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public void initializeMonitorProvider(MonitorProviderCfg configuration) |
| | |
| | | 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"); |
| | |
| | | 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) |
| | | { |