Search in sources :

Example 6 with ValueMonitor

use of org.apache.geode.internal.statistics.ValueMonitor in project geode by apache.

the class AggregateRegionStatsMonitor method stopListener.

@Override
public void stopListener() {
    for (Statistics stat : listeners.keySet()) {
        ValueMonitor monitor = monitors.get(stat);
        monitor.removeListener(listeners.get(stat));
        monitor.removeStatistics(stat);
    }
    listeners.clear();
    monitors.clear();
}
Also used : Statistics(org.apache.geode.Statistics) ValueMonitor(org.apache.geode.internal.statistics.ValueMonitor)

Aggregations

ValueMonitor (org.apache.geode.internal.statistics.ValueMonitor)6 Statistics (org.apache.geode.Statistics)2