org.eclipse.cosmos.dc.mgmt.annotations
Enum ManagedMetric.CHANGE_TYPE
java.lang.Object
java.lang.Enum<ManagedMetric.CHANGE_TYPE>
org.eclipse.cosmos.dc.mgmt.annotations.ManagedMetric.CHANGE_TYPE
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<ManagedMetric.CHANGE_TYPE>
- Enclosing class:
- ManagedMetric
public static enum ManagedMetric.CHANGE_TYPE
- extends java.lang.Enum<ManagedMetric.CHANGE_TYPE>
Enumeration used to specify the value of changeType() in the annotation.
COUNTER - the value of the metric is a monotonically increasing integer.
Such a metric value increases by increments of ?1? when a situational event occurs to the resource.
GUAGE - changes of the value of the metric are not constrained in the way
changes to Counter metrics are constrained.
UNKNOWN - the change behavior for the value of the metric is not known or cannot be described
| Methods inherited from class java.lang.Enum |
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
COUNTER
public static final ManagedMetric.CHANGE_TYPE COUNTER
GAUGE
public static final ManagedMetric.CHANGE_TYPE GAUGE
UNKNOWN
public static final ManagedMetric.CHANGE_TYPE UNKNOWN
values
public static final ManagedMetric.CHANGE_TYPE[] values()
- Returns an array containing the constants of this enum type, in
the order they're declared. This method may be used to iterate
over the constants as follows:
for(ManagedMetric.CHANGE_TYPE c : ManagedMetric.CHANGE_TYPE.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they're declared
valueOf
public static ManagedMetric.CHANGE_TYPE 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 name