public abstract class ByteThroughputProvider extends Object
Modifier | Constructor and Description |
---|---|
protected |
ByteThroughputProvider(ThroughputMetricType type) |
Modifier and Type | Method and Description |
---|---|
int |
getByteCount() |
long |
getDurationNano() |
String |
getProviderId()
Returns a provider id that can be used to compute the number of active
byte throughput provider of a specific metric type being active in a
given time interval.
|
ThroughputMetricType |
getThroughputMetricType() |
protected void |
increment(int bytesDelta,
long startTimeNano) |
protected void |
reset() |
String |
toString() |
protected ByteThroughputProvider(ThroughputMetricType type)
public ThroughputMetricType getThroughputMetricType()
public int getByteCount()
public long getDurationNano()
public String getProviderId()
protected void increment(int bytesDelta, long startTimeNano)
bytesDelta
- the number of bytes to incrementstartTimeNano
- the start time in nano secondsprotected void reset()
Copyright © 2017. All rights reserved.