com.ibm.streams.operator.management
Interface MetricMXBean
-
public interface MetricMXBeanThe management bean for aMetric.- Since:
- InfoSphere® Streams Version 3.0
- See Also:
OperatorContextMXBean.registerCustomMetric(String),OperatorContextMXBean.registerInputPortMetrics(int),OperatorContextMXBean.registerOutputPortMetrics(int),Metric
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface and Description static classMetricMXBean.MetricTypeType of metrics represented by aMetricMXBean
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.StringMETRIC_PROPERTYProperty key in the registered bean's object name that defines the type of the metric.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description java.lang.StringgetDescription()Get the description of this metric.Metric.KindgetKind()Get the kind of this metric.java.lang.StringgetName()Get the name of this metric.longgetValue()Get the value of this metric.
-
-
-
Field Detail
-
METRIC_PROPERTY
static final java.lang.String METRIC_PROPERTY
Property key in the registered bean's object name that defines the type of the metric. The value will correspond to aMetricMXBean.MetricType.type()return value.- See Also:
- Constant Field Values
-
-
Method Detail
-
getName
java.lang.String getName()
Get the name of this metric.- Returns:
- Name of the metric.
-
getDescription
java.lang.String getDescription()
Get the description of this metric.- Returns:
- Description of the metric.
-
getKind
Metric.Kind getKind()
Get the kind of this metric.- Returns:
- Kind of the metric.
-
getValue
long getValue()
Get the value of this metric.- Returns:
- Value of the metric.
- Throws:
java.lang.IllegalStateException- Operator has been shutdown.
-
-