public class ArmMetricGroup extends ArmInterface implements ArmMetricGroup
Modifier and Type | Field and Description |
---|---|
protected ArmMetricGroupDefinition |
m_definition |
protected ArmMetric[] |
m_metrics |
protected boolean[] |
m_metricValid |
m_errorCode, m_factory
Constructor and Description |
---|
ArmMetricGroup(ArmMetricGroupDefinition groupDefinition,
ArmMetric[] metric_instances)
Create ARM Metric Group.
|
Modifier and Type | Method and Description |
---|---|
ArmMetricGroupDefinition |
getDefinition() |
ArmMetric |
getMetric(int index) |
boolean |
isMetricValid(int index) |
int |
setMetricValid(int index,
boolean value)
Indicates whether an
ArmMetric subclass at this array
index is valid. |
getErrorCode, getErrorMessage, getFactory, setErrorCode, setFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getErrorCode, getErrorMessage, setErrorCode
protected ArmMetric[] m_metrics
protected boolean[] m_metricValid
protected ArmMetricGroupDefinition m_definition
public ArmMetricGroup(ArmMetricGroupDefinition groupDefinition, ArmMetric[] metric_instances)
groupDefinition
- metric_instances
- public ArmMetricGroupDefinition getDefinition()
getDefinition
in interface ArmMetricGroup
public ArmMetric getMetric(int index)
getMetric
in interface ArmMetricGroup
index
- the index into the ArmMetric
array. See
comment in the interface description above.public boolean isMetricValid(int index)
isMetricValid
in interface ArmMetricGroup
index
- the index into the ArmMetric
array. See
comment in the interface description above.public int setMetricValid(int index, boolean value)
ArmMetricGroup
ArmMetric
subclass at this array
index is valid.
This applies when any of the following calls are made:
ArmTranReportWithMetrics: report()
ArmTransactionWithMetrics: start(), update(),
stop()
setMetricValid
in interface ArmMetricGroup
index
- index the index into the ArmMetric
array. See
comment in the interface description above.value
- If the valid flag is set then the metric value is
processed.ArmInterface
).