|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objectcom.amazonaws.util.AWSRequestMetrics
com.amazonaws.util.AWSRequestMetricsFullSupport
public class AWSRequestMetricsFullSupport
In contrast to 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.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.amazonaws.util.AWSRequestMetrics |
|---|
AWSRequestMetrics.Field |
| Constructor Summary | |
|---|---|
AWSRequestMetricsFullSupport()
This constructor should be used in the case when AWS SDK metrics collector is enabled. |
|
| Method Summary | |
|---|---|
void |
addProperty(com.amazonaws.metrics.MetricType f,
java.lang.Object value)
|
void |
addProperty(java.lang.String propertyName,
java.lang.Object value)
Add a property. |
void |
endEvent(com.amazonaws.metrics.MetricType f)
|
void |
endEvent(java.lang.String eventName)
End an event which was previously started. |
java.util.List<java.lang.Object> |
getProperty(com.amazonaws.metrics.MetricType f)
|
java.util.List<java.lang.Object> |
getProperty(java.lang.String propertyName)
|
void |
incrementCounter(com.amazonaws.metrics.MetricType f)
|
void |
incrementCounter(java.lang.String event)
Add 1 to an existing count for a given event. |
boolean |
isEnabled()
Always returns true. |
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)
Start an event which will be timed. |
| Methods inherited from class com.amazonaws.util.AWSRequestMetrics |
|---|
getTimingInfo |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AWSRequestMetricsFullSupport()
AWSRequestMetricsFullSupport| Method Detail |
|---|
public 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(com.amazonaws.metrics.MetricType f)
startEvent in class AWSRequestMetricspublic void endEvent(java.lang.String eventName)
endEvent in class AWSRequestMetricseventName - - The name of the event to startpublic void endEvent(com.amazonaws.metrics.MetricType f)
endEvent in class AWSRequestMetricspublic 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(com.amazonaws.metrics.MetricType f)
incrementCounter in class AWSRequestMetrics
public void setCounter(java.lang.String counterName,
long count)
setCounter in class AWSRequestMetrics
public void setCounter(com.amazonaws.metrics.MetricType f,
long count)
setCounter in class AWSRequestMetrics
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 value
public void addProperty(com.amazonaws.metrics.MetricType f,
java.lang.Object value)
addProperty in class AWSRequestMetricspublic void log()
log in class AWSRequestMetricspublic java.util.List<java.lang.Object> getProperty(java.lang.String propertyName)
getProperty in class AWSRequestMetricspublic java.util.List<java.lang.Object> getProperty(com.amazonaws.metrics.MetricType f)
getProperty in class AWSRequestMetricspublic final boolean isEnabled()
isEnabled in class AWSRequestMetrics
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||