|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bigdata.service.ndx.pipeline.AbstractMasterStats<L,HS>
com.bigdata.service.ndx.pipeline.AbstractRunnableMasterStats<L,HS>
public class AbstractRunnableMasterStats<L,HS extends AbstractSubtaskStats>
Statistics for the consumer, including several moving averages based on sampled data.
MovingAverageTask will stop
updating once a given sink is discarded. Since the
MovingAverageTask is no longer run, the counter does not get a
new sample from that task and the counter value thereafter remains the
same.| Nested Class Summary | |
|---|---|
protected class |
AbstractRunnableMasterStats.StatisticsTask
Task samples various counters of interest and convert them into moving averages. |
| Field Summary | |
|---|---|
AtomicLong |
duplicateCount
The #of duplicates which were filtered out. |
long |
elapsedHandleChunkNanos
Elapsed nanoseconds in IndexWriteTask.handleChunk(com.bigdata.btree.keys.KVO[], boolean)
. |
long |
elapsedSplitChunkNanos
Elapsed nanoseconds in IndexWriteTask.handleChunk(com.bigdata.btree.keys.KVO[], boolean)
required to split a chunk drained from the master. |
AtomicLong |
handledChunkCount
The #of chunks that have passed through IndexWriteTask.handleChunk(com.bigdata.btree.keys.KVO[], boolean)
. |
protected static double |
scalingFactor
Scaling factor converts nanoseconds to milliseconds. |
protected AbstractRunnableMasterStats.StatisticsTask |
statisticsTask
Task that will convert sampled data into moving averages. |
| Fields inherited from class com.bigdata.service.ndx.pipeline.AbstractMasterStats |
|---|
chunksIn, chunksOut, chunksTransferred, elapsedRedirectNanos, elapsedSinkChunkWaitingNanos, elapsedSinkChunkWritingNanos, elapsedSinkOfferNanos, elementsIn, elementsOnSinkQueues, elementsOut, elementsTransferred, masterCreateCount, masters, redirectCount, subtaskEndCount, subtaskIdleTimeoutCount, subtaskStartCount |
| Constructor Summary | |
|---|---|
AbstractRunnableMasterStats(AbstractFederation<?> fed)
|
|
| Method Summary | |
|---|---|
CounterSet |
getCounterSet()
Return a CounterSet which may be used to report the statistics on
the index write operation. |
protected AbstractRunnableMasterStats.StatisticsTask |
newStatisticsTask()
Return the AbstractRunnableMasterStats.StatisticsTask that will sample various counters of
interest and convert them into moving averages. |
protected HS |
newSubtaskStats(L locator)
Factory for the subtask statistics. |
String |
toString()
|
| Methods inherited from class com.bigdata.service.ndx.pipeline.AbstractMasterStats |
|---|
getActiveSinkCount, getMasterActiveCount, getMaximumPartitionCount, getSubtaskStats, getSubtaskStats |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public final AtomicLong duplicateCount
public final AtomicLong handledChunkCount
IndexWriteTask.handleChunk(com.bigdata.btree.keys.KVO[], boolean)
.
public long elapsedSplitChunkNanos
IndexWriteTask.handleChunk(com.bigdata.btree.keys.KVO[], boolean)
required to split a chunk drained from the master.
public long elapsedHandleChunkNanos
IndexWriteTask.handleChunk(com.bigdata.btree.keys.KVO[], boolean)
.
protected final AbstractRunnableMasterStats.StatisticsTask statisticsTask
protected static final double scalingFactor
| Constructor Detail |
|---|
public AbstractRunnableMasterStats(AbstractFederation<?> fed)
| Method Detail |
|---|
protected AbstractRunnableMasterStats.StatisticsTask newStatisticsTask()
AbstractRunnableMasterStats.StatisticsTask that will sample various counters of
interest and convert them into moving averages. This be overridden to
extend the sampled counters. However, you MUST also override
getCounterSet() to report any additional data.
public CounterSet getCounterSet()
CounterSet which may be used to report the statistics on
the index write operation. The CounterSet is NOT placed into any
namespace.
getCounterSet in class AbstractMasterStats<L,HS extends AbstractSubtaskStats>public String toString()
toString in class AbstractMasterStats<L,HS extends AbstractSubtaskStats>protected HS newSubtaskStats(L locator)
AbstractMasterStats
newSubtaskStats in class AbstractMasterStats<L,HS extends AbstractSubtaskStats>locator - The subtask key.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||