Package com.amazonaws.metrics
Class ByteThroughputProvider
java.lang.Object
com.amazonaws.metrics.ByteThroughputProvider
Byte throughput metric information provider.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
long
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.protected void
increment
(int bytesDelta, long startTimeNano) protected void
reset()
toString()
-
Constructor Details
-
ByteThroughputProvider
-
-
Method Details
-
getThroughputMetricType
-
getByteCount
public int getByteCount() -
getDurationNano
public long getDurationNano() -
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. -
increment
protected void increment(int bytesDelta, long startTimeNano) - Parameters:
bytesDelta
- the number of bytes to incrementstartTimeNano
- the start time in nano seconds
-
reset
protected void reset() -
toString
-