org.eclipse.cosmos.dc.mgmt.annotations
Enum ManagedMetric.GATHERING_TIME
java.lang.Object
java.lang.Enum<ManagedMetric.GATHERING_TIME>
org.eclipse.cosmos.dc.mgmt.annotations.ManagedMetric.GATHERING_TIME
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<ManagedMetric.GATHERING_TIME>
- Enclosing class:
- ManagedMetric
public static enum ManagedMetric.GATHERING_TIME
- extends java.lang.Enum<ManagedMetric.GATHERING_TIME>
Enumeration used to specify the value of gatheringTime() in the annotation.
ON_CHANGE - the value of a metric is updated whenever a change occurs to the quantity measured.
PERIODIC - the value of a metric is updated on a regularly scheduled basis.
ON_DEMAND - the value of a metric is updated when processing a request for the metric value.
UNKNOWN - it is unknown when the value of a metric is updated.
| 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 |
ON_CHANGE
public static final ManagedMetric.GATHERING_TIME ON_CHANGE
PERIODIC
public static final ManagedMetric.GATHERING_TIME PERIODIC
ON_DEMAND
public static final ManagedMetric.GATHERING_TIME ON_DEMAND
UNKNOWN
public static final ManagedMetric.GATHERING_TIME UNKNOWN
values
public static final ManagedMetric.GATHERING_TIME[] 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.GATHERING_TIME c : ManagedMetric.GATHERING_TIME.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.GATHERING_TIME 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