@Deprecated public class AWSRequestMetrics extends Object
In contrast to AWSRequestMetricsFullSupport
, which is intended to be
a full support of AWS SDK request metrics, this class only provides access to
a TimingInfo
instance that only has minimal support for start and end
time (ie with no-ops for sub-event measurements) for backward compatibility
reason. The other methods related to properties and counters in this class
are effectively no-ops.
This class is instantiated instead of AWSRequestMetricsFullSupport
when request metric collection is not required during a particular service
request/response cycle.
Modifier and Type | Class and Description |
---|---|
static class |
AWSRequestMetrics.Field
Deprecated.
Predefined AWS SDK metric types general across all AWS clients.
|
Modifier and Type | Field and Description |
---|---|
protected TimingInfo |
timingInfo
Deprecated.
|
Modifier | Constructor and Description |
---|---|
|
AWSRequestMetrics()
Deprecated.
This constructor should be used only in the case when AWS SDK metrics
collector is disabled, when minimal timing info is supported for backward
compatibility reasons.
|
protected |
AWSRequestMetrics(TimingInfo timingInfo)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
addProperty(MetricType f,
Object value)
Deprecated.
|
void |
addProperty(String propertyName,
Object value)
Deprecated.
|
void |
endEvent(MetricType f)
Deprecated.
|
void |
endEvent(String eventName)
Deprecated.
|
List<Object> |
getProperty(MetricType f)
Deprecated.
|
List<Object> |
getProperty(String propertyName)
Deprecated.
|
TimingInfo |
getTimingInfo()
Deprecated.
|
void |
incrementCounter(MetricType f)
Deprecated.
|
void |
incrementCounter(String event)
Deprecated.
|
boolean |
isEnabled()
Deprecated.
|
void |
log()
Deprecated.
log.
|
void |
setCounter(MetricType f,
long count)
Deprecated.
|
void |
setCounter(String counterName,
long count)
Deprecated.
|
void |
startEvent(MetricType f)
Deprecated.
|
void |
startEvent(String eventName)
Deprecated.
|
protected final TimingInfo timingInfo
public AWSRequestMetrics()
AWSRequestMetricsFullSupport
protected AWSRequestMetrics(TimingInfo timingInfo)
public final TimingInfo getTimingInfo()
public boolean isEnabled()
public void startEvent(String eventName)
eventName
- the event name to start.public void startEvent(MetricType f)
f
- the metric type.public void endEvent(String eventName)
eventName
- the event name.public void endEvent(MetricType f)
f
- the metric type.public void incrementCounter(String event)
event
- the event.public void incrementCounter(MetricType f)
f
- the metric type.public void setCounter(String counterName, long count)
counterName
- the counter name.count
- the count.public void setCounter(MetricType f, long count)
f
- the metric type.count
- the count.public void addProperty(String propertyName, Object value)
propertyName
- the property name.value
- the value.public void addProperty(MetricType f, Object value)
f
- the metric type.value
- the value.public void log()
public List<Object> getProperty(String propertyName)
propertyName
- the property name.public List<Object> getProperty(MetricType f)
f
- the metric type.Copyright © 2018. All rights reserved.