|
Vordel SDK | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.vordel.reporting.rtm.api.MetricRange
public class MetricRange
A metric of type MetricTypeRangeCount has a number of ranges
associated with it. For example, for the metric respTimeRange, the following
ranges are defined:- < 10 milliseconds, < 100 < milliseconds, < 1 second,..., >= 60 seconds.
When we add a sample for a metric of this type via MetricGroup.addSample("respTimeRange", 300),
the Gateway will determine which range the sample falls into and increment
a counter associated with that range, i.e. respTimeRange1, or respTimeRange2,..
of respTimeRangen etc.
This class defines a range for metric of type MetricTypeRangeCount.
Ranges are checked in a defined order to ensure that the correct
range is found for a sample.
MetricTypeRangeCount| Nested Class Summary | |
|---|---|
static class |
MetricRange.MetricRangeOperator
|
| Constructor Summary | |
|---|---|
MetricRange(java.lang.String name,
int value,
MetricRange.MetricRangeOperator operator)
Construct a MetricRange. |
|
MetricRange(java.lang.String name,
int value,
java.lang.String operator)
Construct a MetricRange. |
|
| Method Summary | |
|---|---|
java.lang.String |
getName()
Get the name of the MetricRange. |
MetricRange.MetricRangeOperator |
getOperator()
Get the operator. |
int |
getOperatorOrdinal()
Get the operator's ordinal value. |
int |
getValue()
Get the value for the range that determines if a sample falls within this range. |
boolean |
withinRange(int sample)
Determine if the sample is within this range. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MetricRange(java.lang.String name,
int value,
MetricRange.MetricRangeOperator operator)
MetricRange.
name - The name of the MetricRange, this will be used
as the name of the metric that gets generated for this range,
e.g. respTimeRange1.value - The value used to determine if a sample is within this range.operator - The operator
public MetricRange(java.lang.String name,
int value,
java.lang.String operator)
MetricRange.
name - The name of the MetricRange, this will be used
as the name of the metric that gets generated for this range,
e.g. respTimeRange1.value - The value used to determine if a sample is within this range.operator - The operator as a String, i.e. "<", "<=", ">" or ">=".| Method Detail |
|---|
public java.lang.String getName()
MetricRange. The name is used
as the name of the metric that gets generated for this range,
e.g. respTimeRange1.
public int getValue()
public MetricRange.MetricRangeOperator getOperator()
public int getOperatorOrdinal()
public boolean withinRange(int sample)
sample - The sample value
|
Vordel SDK | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||