com.amazonaws.metrics
Class ByteThroughputProvider

java.lang.Object
  extended by com.amazonaws.metrics.ByteThroughputProvider

public abstract class ByteThroughputProvider
extends Object

Byte throughput metric information provider.


Constructor Summary
protected ByteThroughputProvider(ThroughputMetricType type)
           
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ByteThroughputProvider

protected ByteThroughputProvider(ThroughputMetricType type)
Method Detail

getThroughputMetricType

public ThroughputMetricType getThroughputMetricType()

getByteCount

public int getByteCount()

getDurationNano

public long getDurationNano()

getProviderId

public 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.


increment

protected void increment(int bytesDelta,
                         long startTimeNano)
Parameters:
bytesDelta - the number of bytes to increment
startTimeNano - the start time in nano seconds

reset

protected void reset()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2016. All rights reserved.