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;
}
Aggregations