public abstract class CommonStats extends Object
Modifier and Type | Field and Description |
---|---|
protected int |
rate |
Constructor and Description |
---|
CommonStats(int rate,
int numStatBuckets) |
Modifier and Type | Method and Description |
---|---|
void |
cleanupStats() |
void |
emittedTuple(String stream,
com.codahale.metrics.Counter emittedCounter) |
MultiCountStatAndMetric |
getAcked() |
MultiCountStatAndMetric |
getEmitted() |
MultiCountStatAndMetric |
getFailed() |
int |
getRate() |
MultiCountStatAndMetric |
getTransferred() |
abstract ExecutorStats |
renderStats() |
void |
transferredTuples(String stream,
int amount,
com.codahale.metrics.Counter transferredCounter) |
protected Map<String,Map<String,Long>> |
valueStat(MultiCountStatAndMetric metric) |
protected Map<String,Map<String,Double>> |
valueStat(MultiLatencyStatAndMetric metric) |
public MultiCountStatAndMetric getFailed()
public MultiCountStatAndMetric getAcked()
public int getRate()
public MultiCountStatAndMetric getEmitted()
public MultiCountStatAndMetric getTransferred()
public void emittedTuple(String stream, com.codahale.metrics.Counter emittedCounter)
public void transferredTuples(String stream, int amount, com.codahale.metrics.Counter transferredCounter)
public void cleanupStats()
public abstract ExecutorStats renderStats()
Copyright © 2020 The Apache Software Foundation. All rights reserved.