|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.util.AWSRequestMetrics
public class AWSRequestMetrics
Used as both a base class and a minimal support of AWS SDK request metrics. The base class of supporting AWS SDK request metrics.
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.
Nested Class Summary | |
---|---|
static class |
AWSRequestMetrics.Field
Predefined AWS SDK metric types general across all AWS clients. |
Constructor Summary | |
---|---|
AWSRequestMetrics()
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. |
Method Summary | |
---|---|
void |
addProperty(com.amazonaws.metrics.MetricType f,
java.lang.Object value)
|
void |
addProperty(java.lang.String propertyName,
java.lang.Object value)
|
void |
endEvent(com.amazonaws.metrics.MetricType f)
|
void |
endEvent(java.lang.String eventName)
|
java.util.List<java.lang.Object> |
getProperty(com.amazonaws.metrics.MetricType f)
|
java.util.List<java.lang.Object> |
getProperty(java.lang.String propertyName)
|
TimingInfo |
getTimingInfo()
|
void |
incrementCounter(com.amazonaws.metrics.MetricType f)
|
void |
incrementCounter(java.lang.String event)
|
boolean |
isEnabled()
Returns true if this metrics is enabled; false otherwise. |
void |
log()
|
void |
setCounter(com.amazonaws.metrics.MetricType f,
long count)
|
void |
setCounter(java.lang.String counterName,
long count)
|
void |
startEvent(com.amazonaws.metrics.MetricType f)
|
void |
startEvent(java.lang.String eventName)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AWSRequestMetrics()
AWSRequestMetricsFullSupport
Method Detail |
---|
public final TimingInfo getTimingInfo()
public boolean isEnabled()
public void startEvent(java.lang.String eventName)
public void startEvent(com.amazonaws.metrics.MetricType f)
public void endEvent(java.lang.String eventName)
public void endEvent(com.amazonaws.metrics.MetricType f)
public void incrementCounter(java.lang.String event)
public void incrementCounter(com.amazonaws.metrics.MetricType f)
public void setCounter(java.lang.String counterName, long count)
public void setCounter(com.amazonaws.metrics.MetricType f, long count)
public void addProperty(java.lang.String propertyName, java.lang.Object value)
public void addProperty(com.amazonaws.metrics.MetricType f, java.lang.Object value)
public void log()
public java.util.List<java.lang.Object> getProperty(java.lang.String propertyName)
public java.util.List<java.lang.Object> getProperty(com.amazonaws.metrics.MetricType f)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |