Package com.amazonaws.metrics
Class ServiceMetricCollector
- java.lang.Object
-
- com.amazonaws.metrics.ServiceMetricCollector
-
- Direct Known Subclasses:
ServiceMetricCollectorSupport
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
Nested Classes Modifier and Type Class Description static interfaceServiceMetricCollector.Factory
-
Field Summary
Fields Modifier and Type Field Description static ServiceMetricCollectorNONEA convenient instance of a no-op service metric collector.
-
Constructor Summary
Constructors Constructor Description ServiceMetricCollector()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voidcollectByteThroughput(ByteThroughputProvider provider)Collects metrics on the number of bytes written or read and the respective duration.abstract voidcollectLatency(ServiceLatencyProvider provider)Collects metrics for non-request specific latencies.booleanisEnabled()
-
-
-
Field Detail
-
NONE
public static final ServiceMetricCollector NONE
A convenient instance of a no-op service metric collector.
-
-
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()
-
-