public interface MetricsContext
extends java.io.Closeable
| Modifier and Type | Interface and Description |
|---|---|
static interface |
MetricsContext.Snapshot |
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_RESERVOIR_SIZE |
static int |
DEFAULT_SNAPSHOT_UPDATE_PERIOD_MILLIS |
| Modifier and Type | Method and Description |
|---|---|
void |
enterThresholdState() |
void |
exitThresholdState() |
int |
getActualConcurrency() |
boolean |
getAvgPersistFlag() |
int |
getConcurrency() |
int |
getConcurrencyThreshold() |
int |
getDriverCount() |
com.emc.mongoose.api.model.io.IoType |
getIoType() |
com.github.akurilov.commons.system.SizeInBytes |
getItemDataSize() |
long |
getLastOutputTs() |
MetricsContext.Snapshot |
getLastSnapshot() |
long |
getOutputPeriodMillis() |
boolean |
getPerfDbResultsFileFlag() |
boolean |
getStdOutColorFlag() |
java.lang.String |
getStepId() |
boolean |
getSumPersistFlag() |
MetricsContext |
getThresholdMetrics() |
boolean |
isStarted() |
boolean |
isThresholdStateEntered() |
boolean |
isThresholdStateExited() |
void |
markElapsedTime(long millis) |
void |
markFail() |
void |
markFail(long count) |
void |
markPartSucc(long bytes,
long[] durationValues,
long[] latencyValues) |
void |
markPartSucc(long size,
long duration,
long latency) |
void |
markSucc(long size,
long duration,
long latency) |
void |
markSucc(long count,
long bytes,
long[] durationValues,
long[] latencyValues) |
void |
refreshLastSnapshot() |
void |
setLastOutputTs(long ts) |
void |
setMetricsListener(MetricsListener metricsListener) |
void |
start() |
static final int DEFAULT_SNAPSHOT_UPDATE_PERIOD_MILLIS
static final int DEFAULT_RESERVOIR_SIZE
void start()
boolean isStarted()
void markSucc(long size,
long duration,
long latency)
void markPartSucc(long size,
long duration,
long latency)
void markSucc(long count,
long bytes,
long[] durationValues,
long[] latencyValues)
void markPartSucc(long bytes,
long[] durationValues,
long[] latencyValues)
void markFail()
void markFail(long count)
void markElapsedTime(long millis)
java.lang.String getStepId()
com.emc.mongoose.api.model.io.IoType getIoType()
int getDriverCount()
int getConcurrency()
int getConcurrencyThreshold()
int getActualConcurrency()
com.github.akurilov.commons.system.SizeInBytes getItemDataSize()
boolean getStdOutColorFlag()
boolean getAvgPersistFlag()
boolean getSumPersistFlag()
boolean getPerfDbResultsFileFlag()
long getOutputPeriodMillis()
long getLastOutputTs()
void setLastOutputTs(long ts)
void refreshLastSnapshot()
MetricsContext.Snapshot getLastSnapshot()
void setMetricsListener(MetricsListener metricsListener)
boolean isThresholdStateEntered()
void enterThresholdState()
throws java.lang.IllegalStateException
java.lang.IllegalStateExceptionboolean isThresholdStateExited()
MetricsContext getThresholdMetrics()
void exitThresholdState()
throws java.lang.IllegalStateException
java.lang.IllegalStateException