use of org.apache.geode.internal.statistics.StatisticId in project geode by apache.
the class VMStatsMonitor method handleNotification.
@Override
public void handleNotification(StatisticsNotification notification) {
for (StatisticId statId : notification) {
StatisticDescriptor descriptor = statId.getStatisticDescriptor();
String name = descriptor.getName();
Number value;
try {
value = notification.getValue(statId);
} catch (StatisticNotFoundException e) {
value = 0;
}
log(name, value);
statsMap.put(name, value);
}
refreshStats();
}
use of org.apache.geode.internal.statistics.StatisticId in project geode by apache.
the class MBeanStatsMonitor method handleNotification.
@Override
public void handleNotification(final StatisticsNotification notification) {
for (StatisticId statId : notification) {
StatisticDescriptor descriptor = statId.getStatisticDescriptor();
String name = descriptor.getName();
Number value;
try {
value = notification.getValue(statId);
} catch (StatisticNotFoundException e) {
value = 0;
}
log(name, value);
statsMap.put(name, value);
}
}
use of org.apache.geode.internal.statistics.StatisticId in project geode by apache.
the class GCStatsMonitor method handleNotification.
@Override
public void handleNotification(StatisticsNotification notification) {
decreasePrevValues(statsMap);
for (StatisticId statId : notification) {
StatisticDescriptor descriptor = statId.getStatisticDescriptor();
String name = descriptor.getName();
Number value;
try {
value = notification.getValue(statId);
} catch (StatisticNotFoundException e) {
value = 0;
}
log(name, value);
increaseStats(name, value);
statsMap.put(name, value);
}
}
Aggregations