public abstract class BatchCounterDataStore extends InMemoryCounterDataStore
Modifier and Type | Field and Description |
---|---|
protected boolean |
clearAfterCollect |
protected BatchFuture |
scheduledTask |
Modifier | Constructor and Description |
---|---|
protected |
BatchCounterDataStore() |
Modifier and Type | Method and Description |
---|---|
protected void |
clearCountersIfNeeded() |
protected int |
getPeriod(String prefix) |
protected boolean |
isClearAfterCollect(String prefix) |
protected abstract void |
pushCountersByBatch(Collection<Counter> instance) |
void |
shutdown() |
addToCounter, cleanUp, clearCounters, getCounters, getOrCreateCounter, newCounter, newCounterMap
protected final BatchFuture scheduledTask
protected final boolean clearAfterCollect
protected boolean isClearAfterCollect(String prefix)
protected int getPeriod(String prefix)
public void shutdown()
protected void clearCountersIfNeeded()
protected abstract void pushCountersByBatch(Collection<Counter> instance)
Copyright © 2008–2015 The Apache Software Foundation. All rights reserved.