public AbstractStatisticsFactory(long id, String name, long startTime, LogWriterI18n log) { this.id = id; this.name = name; this.startTime = startTime; this.log = log; this.statsList = new ArrayList<Statistics>(); this.statsListUniqueIdLock = new Object(); this.tf = StatisticsTypeFactoryImpl.singleton(); }
public AbstractStatisticsFactory(long id, String name, long startTime) { this.id = id; this.name = name; this.startTime = startTime; this.statsList = new ArrayList<Statistics>(); this.statsListUniqueIdLock = new Object(); this.tf = StatisticsTypeFactoryImpl.singleton(); }
private static StatisticsType createType(StatisticsFactory f) { StatisticsTypeFactory stf = StatisticsTypeFactoryImpl.singleton(); StatisticsType type = stf.createType( TYPE_NAME, TYPE_DESCRIPTION, createDescriptors(f)); return type; }
"blah blah blah"; StatisticsTypeFactory f = StatisticsTypeFactoryImpl.singleton();
public HFileStoreStatistics(StatisticsFactory factory, String typeName, String name) { StatisticsTypeFactory tf = StatisticsTypeFactoryImpl.singleton(); StatisticDescriptor bcMisses = tf.createLongCounter("blockCacheMisses", "The total number of block cache misses", "misses"); StatisticDescriptor bcHits = tf.createLongCounter("blockCacheHits", "The total number of block cache hits", "hits"); StatisticDescriptor bcCached = tf.createLongGauge("blocksCached", "The current number of cached blocks", "blocks"); StatisticDescriptor bcBytesCached = tf.createLongGauge("blockBytesCached", "The current number of bytes cached", "bytes"); StatisticDescriptor bcBytesEvicted = tf.createLongCounter("blockBytesEvicted", "The total number of bytes cached", "bytes"); StatisticsType type = tf.createType(typeName, "Statistics about structured I/O operations for a region", new StatisticDescriptor[] { bcMisses, bcHits, bcCached, bcBytesCached, bcBytesEvicted }); blockCache = new CacheOperation(bcMisses.getId(), bcHits.getId(), bcCached.getId(), bcBytesCached.getId(), bcBytesEvicted.getId()); stats = factory.createAtomicStatistics(type, name); }
public HFileStoreStatistics(StatisticsFactory factory, String typeName, String name) { StatisticsTypeFactory tf = StatisticsTypeFactoryImpl.singleton(); StatisticDescriptor bcMisses = tf.createLongCounter("blockCacheMisses", "The total number of block cache misses", "misses"); StatisticDescriptor bcHits = tf.createLongCounter("blockCacheHits", "The total number of block cache hits", "hits"); StatisticDescriptor bcCached = tf.createLongGauge("blocksCached", "The current number of cached blocks", "blocks"); StatisticDescriptor bcBytesCached = tf.createLongGauge("blockBytesCached", "The current number of bytes cached", "bytes"); StatisticDescriptor bcBytesEvicted = tf.createLongCounter("blockBytesEvicted", "The total number of bytes cached", "bytes"); StatisticsType type = tf.createType(typeName, "Statistics about structured I/O operations for a region", new StatisticDescriptor[] { bcMisses, bcHits, bcCached, bcBytesCached, bcBytesEvicted }); blockCache = new CacheOperation(bcMisses.getId(), bcHits.getId(), bcCached.getId(), bcBytesCached.getId(), bcBytesEvicted.getId()); stats = factory.createAtomicStatistics(type, name); }
public void init(StatisticsFactory factory) { final StatisticsTypeFactory tf = StatisticsTypeFactoryImpl.singleton();
public void init(StatisticsFactory factory) { final StatisticsTypeFactory tf = StatisticsTypeFactoryImpl.singleton();
public void init(StatisticsFactory factory) { final StatisticsTypeFactory tf = StatisticsTypeFactoryImpl.singleton();
public SortedOplogStatistics(StatisticsFactory factory, String typeName, String name) { StatisticsTypeFactory tf = StatisticsTypeFactoryImpl.singleton();
public SortedOplogStatistics(StatisticsFactory factory, String typeName, String name) { StatisticsTypeFactory tf = StatisticsTypeFactoryImpl.singleton();