@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.
Returns true if this metrics is enabled; false otherwise.
|
void |
log()
Deprecated.
|
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)
public void startEvent(MetricType f)
public void endEvent(String eventName)
public void endEvent(MetricType f)
public void incrementCounter(String event)
public void incrementCounter(MetricType f)
public void setCounter(String counterName, long count)
public void setCounter(MetricType f, long count)
public void addProperty(MetricType f, Object value)
public void log()
public List<Object> getProperty(MetricType f)
Copyright © 2015. All rights reserved.