com.amazonaws.metrics
Class ServiceMetricCollector

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

public abstract class ServiceMetricCollector
extends Object

A service provider interface that can be used to implement an AWS SDK general purpose metric collector.


Nested Class Summary
static interface ServiceMetricCollector.Factory
           
 
Field Summary
static ServiceMetricCollector NONE
          A convenient instance of a no-op service metric collector.
 
Constructor Summary
ServiceMetricCollector()
           
 
Method Summary
abstract  void collectByteThroughput(ByteThroughputProvider provider)
          Collects metrics on the number of bytes written or read and the respective duration.
abstract  void collectLatency(ServiceLatencyProvider provider)
          Collects metrics for non-request specific latencies.
 boolean isEnabled()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NONE

public static final ServiceMetricCollector NONE
A convenient instance of a no-op service metric collector.

Constructor Detail

ServiceMetricCollector

public ServiceMetricCollector()
Method Detail

collectByteThroughput

public abstract void collectByteThroughput(ByteThroughputProvider provider)
Collects metrics on the number of bytes written or read and the respective duration.


collectLatency

public abstract void collectLatency(ServiceLatencyProvider provider)
Collects metrics for non-request specific latencies.


isEnabled

public boolean isEnabled()


Copyright © 2016. All rights reserved.