Search in sources :

Example 1 with LocalStatisticsImpl

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

the class InternalDistributedSystem method createOsStatistics.

public Statistics createOsStatistics(StatisticsType type, String textId, long numericId, int osStatFlags) {
    if (this.statsDisabled) {
        return new DummyStatisticsImpl(type, textId, numericId);
    }
    long myUniqueId = statsListUniqueId.getAndIncrement();
    Statistics result = new LocalStatisticsImpl(type, textId, numericId, myUniqueId, false, osStatFlags, this);
    synchronized (statsList) {
        statsList.add(result);
        statsListModCount++;
    }
    return result;
}
Also used : LocalStatisticsImpl(org.apache.geode.internal.statistics.LocalStatisticsImpl) Statistics(org.apache.geode.Statistics) LinuxProcFsStatistics(org.apache.geode.internal.statistics.platform.LinuxProcFsStatistics) DummyStatisticsImpl(org.apache.geode.internal.statistics.DummyStatisticsImpl)

Aggregations

Statistics (org.apache.geode.Statistics)1 DummyStatisticsImpl (org.apache.geode.internal.statistics.DummyStatisticsImpl)1 LocalStatisticsImpl (org.apache.geode.internal.statistics.LocalStatisticsImpl)1 LinuxProcFsStatistics (org.apache.geode.internal.statistics.platform.LinuxProcFsStatistics)1