public abstract class ByteThroughputProvider
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
ByteThroughputProvider(ThroughputMetricType type) |
Modifier and Type | Method and Description |
---|---|
int |
getByteCount() |
long |
getDurationNano() |
java.lang.String |
getProviderId() |
ThroughputMetricType |
getThroughputMetricType() |
protected void |
increment(int bytesDelta,
long startTimeNano) |
protected void |
reset() |
java.lang.String |
toString() |
protected ByteThroughputProvider(ThroughputMetricType type)
public ThroughputMetricType getThroughputMetricType()
public int getByteCount()
public long getDurationNano()
public java.lang.String getProviderId()
protected void increment(int bytesDelta, long startTimeNano)
bytesDelta
- the number of bytes to incrementstartTimeNano
- the start time in nano secondsprotected void reset()
public java.lang.String toString()
toString
in class java.lang.Object