| | |
| | | */ |
| | | class BackendMonitor extends MonitorProvider<MonitorProviderCfg> |
| | | { |
| | | |
| | | /** Represents the statistical information kept for each search filter. */ |
| | | private static class FilterStats implements Comparable<FilterStats> |
| | | { |
| | |
| | | this.rootContainer = rootContainer; |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public void initializeMonitorProvider(MonitorProviderCfg configuration) |
| | | throws ConfigException, InitializationException |
| | |
| | | return monitorAttrs; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Updates the index filter statistics with this latest search filter |
| | | * and the reason why an index was not used. |
| | |
| | | { |
| | | stats = filterToStats.get(searchFilter); |
| | | |
| | | |
| | | if(stats != null) |
| | | { |
| | | stats.update(1, failureMessage); |
| | |
| | | { |
| | | stats = filterToStats.get(searchFilter); |
| | | |
| | | |
| | | if(stats != null) |
| | | { |
| | | stats.update(1, matchingEntries); |
| | |
| | | this.maxEntries = maxEntries; |
| | | } |
| | | |
| | | /** |
| | | * Updates the statistics counter to include an indexed search. |
| | | */ |
| | | /** Updates the statistics counter to include an indexed search. */ |
| | | void updateIndexedSearchCount() |
| | | { |
| | | if (filterUseEnabled) |
| | |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * Updates the statistics counter to include an unindexed search. |
| | | */ |
| | | /** Updates the statistics counter to include an unindexed search. */ |
| | | void updateUnindexedSearchCount() |
| | | { |
| | | if (filterUseEnabled) |