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 interface
ServiceMetricCollector.Factory
-
Field Summary
Fields Modifier and Type Field Description static ServiceMetricCollector
NONE
A 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 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()
-
-
-
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()
-
-