Search in sources :

Example 1 with StatSamplerStats

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

the class MemberMBeanBridge method addSystemStats.

public void addSystemStats() {
    GemFireStatSampler sampler = system.getStatSampler();
    ProcessStats processStats = sampler.getProcessStats();
    StatSamplerStats samplerStats = sampler.getStatSamplerStats();
    if (processStats != null) {
        systemStatsMonitor.addStatisticsToMonitor(processStats.getStatistics());
    }
    if (samplerStats != null) {
        systemStatsMonitor.addStatisticsToMonitor(samplerStats.getStats());
    }
}
Also used : GemFireStatSampler(org.apache.geode.internal.statistics.GemFireStatSampler) StatSamplerStats(org.apache.geode.internal.statistics.StatSamplerStats) ProcessStats(org.apache.geode.internal.statistics.platform.ProcessStats)

Aggregations

GemFireStatSampler (org.apache.geode.internal.statistics.GemFireStatSampler)1 StatSamplerStats (org.apache.geode.internal.statistics.StatSamplerStats)1 ProcessStats (org.apache.geode.internal.statistics.platform.ProcessStats)1