org.opengroup.arm40.metric.ArmMetric Interface Reference
[ARM 4.0 Metrics]

The superclass for all the metric interfaces. More...

Inheritance diagram for org.opengroup.arm40.metric.ArmMetric:
org.opengroup.arm40.transaction.ArmInterface org.opengroup.arm40.metric.ArmMetricCounter32 org.opengroup.arm40.metric.ArmMetricCounter64 org.opengroup.arm40.metric.ArmMetricCounterFloat32 org.opengroup.arm40.metric.ArmMetricGauge32 org.opengroup.arm40.metric.ArmMetricGauge64 org.opengroup.arm40.metric.ArmMetricGaugeFloat32 org.opengroup.arm40.metric.ArmMetricNumericId32 org.opengroup.arm40.metric.ArmMetricNumericId64 org.opengroup.arm40.metric.ArmMetricString32

List of all members.

Public Member Functions

ArmMetricDefinition getDefinition ()

Detailed Description

The superclass for all the metric interfaces.

The common behavior of all metric subclasses is:

  • getDefinition() returns the descriptive metadata (name, units, usage, ID) about the metric. The returned object will be the appropriate subclass of ArmMetricDefinition
  • Each subclass is also expected to implement get() and set() methods that take and/or return data of the appropriate type for the subclass. These methods are not defined in this interface because they have different signatures, depending on the type of metric.

Objects that implement a subclass of ArmMetric are used with ArmTransactionWithMetrics and / or ArmTranReportWithMetrics. They are bound via ArmMetricGroup when the ArmTransactionWithMetrics or ArmTranReportWithMetrics instance is created. Each ArmMetric instance can be bound to any number of transaction instances.

Setting the value of the ArmMetric instance effectively sets the value for all the transaction instances to which it is bound. The value affects each ArmTransactionWithMetrics instance the next time a start(), update(), or stop() is executed on the instance. The value affects each ArmTranReportWithMetrics instance the next time a report() is executed on the instance.

This class cannot be instantiated. Objects that implement a subclass of ArmMetric are created using the newArmMetric...() methods of ArmMetricFactory.

Author:
ARM Working Group of The Open Group

Member Function Documentation

ArmMetricDefinition org.opengroup.arm40.metric.ArmMetric.getDefinition (  ) 
Returns:
the descriptive metadata (name, units, usage, ID) about the metric.

The documentation for this interface was generated from the following file:
  • org/opengroup/arm40/metric/ArmMetric.java