@Deprecated public class AWSRequestMetricsFullSupport extends AWSRequestMetrics
AWSRequestMetrics, which is intended to be a minimal
support of AWS SDK request metrics, this class is the full support of AWS SDK
request metrics including features such as properties and sub-events.
This class is instantiated instead of AWSRequestMetrics when request
metric collection is required during a particular service request/response
cycle.
AWSRequestMetrics.FieldtimingInfo| Constructor and Description |
|---|
AWSRequestMetricsFullSupport()
Deprecated.
This constructor should be used in the case when AWS SDK metrics
collector is enabled.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addProperty(MetricType f,
java.lang.Object value)
Deprecated.
|
void |
addProperty(java.lang.String propertyName,
java.lang.Object value)
Deprecated.
Add a property.
|
void |
endEvent(MetricType f)
Deprecated.
|
void |
endEvent(java.lang.String eventName)
Deprecated.
End an event which was previously started.
|
java.util.List<java.lang.Object> |
getProperty(MetricType f)
Deprecated.
|
java.util.List<java.lang.Object> |
getProperty(java.lang.String propertyName)
Deprecated.
|
void |
incrementCounter(MetricType f)
Deprecated.
|
void |
incrementCounter(java.lang.String event)
Deprecated.
Add 1 to an existing count for a given event.
|
boolean |
isEnabled()
Deprecated.
Always returns true.
|
void |
log()
Deprecated.
log.
|
void |
setCounter(MetricType f,
long count)
Deprecated.
|
void |
setCounter(java.lang.String counterName,
long count)
Deprecated.
|
void |
startEvent(MetricType f)
Deprecated.
|
void |
startEvent(java.lang.String eventName)
Deprecated.
Start an event which will be timed.
|
getTimingInfopublic AWSRequestMetricsFullSupport()
AWSRequestMetricsFullSupportpublic void startEvent(java.lang.String eventName)
RequestMetricCollector is in use either at the request, web
service client, or AWS SDK level.startEvent in class AWSRequestMetricseventName - - The name of the event to startAwsSdkMetricspublic void startEvent(MetricType f)
startEvent in class AWSRequestMetricsf - the metric type.public void endEvent(java.lang.String eventName)
endEvent in class AWSRequestMetricseventName - - The name of the event to startpublic void endEvent(MetricType f)
endEvent in class AWSRequestMetricsf - the metric type.public void incrementCounter(java.lang.String event)
RequestMetricCollector is in use either at the request, web
service client, or AWS SDK level.incrementCounter in class AWSRequestMetricsevent - - The name of the event to countpublic void incrementCounter(MetricType f)
incrementCounter in class AWSRequestMetricsf - the metric type.public void setCounter(java.lang.String counterName,
long count)
setCounter in class AWSRequestMetricscounterName - the counter name.count - the count.public void setCounter(MetricType f, long count)
setCounter in class AWSRequestMetricsf - the metric type.count - the count.public void addProperty(java.lang.String propertyName,
java.lang.Object value)
RequestMetricCollector is in use either at the request, web
service client, or AWS SDK level.addProperty in class AWSRequestMetricspropertyName - The name of the propertyvalue - The property valuepublic void addProperty(MetricType f, java.lang.Object value)
addProperty in class AWSRequestMetricsf - the metric type.value - the value.public void log()
AWSRequestMetricslog in class AWSRequestMetricspublic java.util.List<java.lang.Object> getProperty(java.lang.String propertyName)
getProperty in class AWSRequestMetricspropertyName - the property name.public java.util.List<java.lang.Object> getProperty(MetricType f)
getProperty in class AWSRequestMetricsf - the metric type.public final boolean isEnabled()
isEnabled in class AWSRequestMetrics