com.ibm.streams.operator.management
Enum MetricMXBean.MetricType
- java.lang.Object
-
- java.lang.Enum<MetricMXBean.MetricType>
-
- com.ibm.streams.operator.management.MetricMXBean.MetricType
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<MetricMXBean.MetricType>
- Enclosing interface:
- MetricMXBean
public static enum MetricMXBean.MetricType extends java.lang.Enum<MetricMXBean.MetricType>
Type of metrics represented by aMetricMXBean
-
-
Enum Constant Summary
Enum Constants Enum Constant and Description CUSTOM
Operator custom metric.OPERATOR_INPUT_PORT
Operator input port metric.OPERATOR_OUTPUT_PORT
Operator output port metric.
-
Method Summary
Methods Modifier and Type Method and Description void
addType(java.util.Hashtable<java.lang.String,java.lang.String> objectNameProperties)
Add this metric type toobjectNameProperties
for use in creating anObjectName
.abstract java.lang.String
type()
Return the value used forMetricMXBean.METRIC_PROPERTY
in anObjectName
.static MetricMXBean.MetricType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static MetricMXBean.MetricType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CUSTOM
public static final MetricMXBean.MetricType CUSTOM
Operator custom metric.
-
OPERATOR_INPUT_PORT
public static final MetricMXBean.MetricType OPERATOR_INPUT_PORT
Operator input port metric.
-
OPERATOR_OUTPUT_PORT
public static final MetricMXBean.MetricType OPERATOR_OUTPUT_PORT
Operator output port metric.
-
-
Method Detail
-
values
public static MetricMXBean.MetricType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (MetricMXBean.MetricType c : MetricMXBean.MetricType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MetricMXBean.MetricType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
type
public abstract java.lang.String type()
Return the value used forMetricMXBean.METRIC_PROPERTY
in anObjectName
.- Returns:
- Value for
METRIC_PROPERTY
-
addType
public void addType(java.util.Hashtable<java.lang.String,java.lang.String> objectNameProperties)
Add this metric type toobjectNameProperties
for use in creating anObjectName
.- Parameters:
objectNameProperties
- Properties used to create anObjectName
-
-