@Override protected Statistics createOsStatistics(StatisticsType type, String textId, long numericId, int osStatFlags) { if (this.statsDisabled) { return new DummyStatisticsImpl(type, textId, numericId); } return super.createOsStatistics(type, textId, numericId, osStatFlags); }
@Override public Statistics createAtomicStatistics(StatisticsType type, String textId, long numericId) { if (this.statsDisabled) { return new DummyStatisticsImpl(type, textId, numericId); } return super.createAtomicStatistics(type, textId, numericId); } }
@Override public Statistics createAtomicStatistics(StatisticsType type, String textId, long numericId) { if (this.statsDisabled) { return new DummyStatisticsImpl(type, textId, numericId); } return super.createAtomicStatistics(type, textId, numericId); } }
@Override protected Statistics createOsStatistics(StatisticsType type, String textId, long numericId, int osStatFlags) { if (this.statsDisabled) { return new DummyStatisticsImpl(type, textId, numericId); } return super.createOsStatistics(type, textId, numericId, osStatFlags); }
public Statistics createAtomicStatistics(StatisticsType type, String textId, long numericId) { if (this.statsDisabled) { return new DummyStatisticsImpl(type, textId, numericId); } long myUniqueId; synchronized (statsListUniqueIdLock) { myUniqueId = statsListUniqueId++; // fix for bug 30597 } Statistics result = StatisticsImpl.createAtomicNoOS(type, textId, numericId, myUniqueId, this); synchronized (statsList) { statsList.add(result); statsListModCount++; } return result; }
public Statistics createOsStatistics(StatisticsType type, String textId, long numericId, int osStatFlags) { if (this.statsDisabled) { return new DummyStatisticsImpl(type, textId, numericId); } long myUniqueId; synchronized (statsListUniqueIdLock) { myUniqueId = statsListUniqueId++; // fix for bug 30597 } Statistics result = new LocalStatisticsImpl(type, textId, numericId, myUniqueId, false, osStatFlags, this); synchronized (statsList) { statsList.add(result); statsListModCount++; } return result; }
public Statistics createOsStatistics(StatisticsType type, String textId, long numericId, int osStatFlags) { if (this.statsDisabled) { return new DummyStatisticsImpl(type, textId, numericId); } long myUniqueId; synchronized (statsListUniqueIdLock) { myUniqueId = statsListUniqueId++; // fix for bug 30597 } Statistics result = new LocalStatisticsImpl(type, textId, numericId, myUniqueId, false, osStatFlags, this); synchronized (statsList) { statsList.add(result); statsListModCount++; } return result; }
public Statistics createAtomicStatistics(StatisticsType type, String textId, long numericId, long uniqueId) { if (this.statsDisabled) { return new DummyStatisticsImpl(type, textId, numericId); } long myUniqueId; if (uniqueId == 0) { synchronized (statsListUniqueIdLock) { myUniqueId = statsListUniqueId++; // fix for bug 30597 } } else { myUniqueId = uniqueId; } Statistics result = StatisticsImpl.createAtomicNoOS(type, textId, numericId, myUniqueId, this); synchronized (statsList) { statsList.add(result); statsListModCount++; } return result; }