Package com.wavefront.metrics
Enum ExpectedAgentMetric
- java.lang.Object
-
- java.lang.Enum<ExpectedAgentMetric>
-
- com.wavefront.metrics.ExpectedAgentMetric
-
- All Implemented Interfaces:
Serializable,Comparable<ExpectedAgentMetric>
public enum ExpectedAgentMetric extends Enum<ExpectedAgentMetric>
There are some metrics that need to have well known names.- Author:
- Andrew Kao (andrew@wavefront.com)
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACTIVE_LISTENERSBUFFER_BYTES_LEFTBUFFER_BYTES_PER_MINUTECURRENT_QUEUE_SIZELISTENERS_BIND_ERRORSRDNS_CACHE_SIZE
-
Field Summary
Fields Modifier and Type Field Description com.yammer.metrics.core.MetricNamemetricName
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCombinedName()static ExpectedAgentMetricvalueOf(String name)Returns the enum constant of this type with the specified name.static ExpectedAgentMetric[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ACTIVE_LISTENERS
public static final ExpectedAgentMetric ACTIVE_LISTENERS
-
LISTENERS_BIND_ERRORS
public static final ExpectedAgentMetric LISTENERS_BIND_ERRORS
-
BUFFER_BYTES_LEFT
public static final ExpectedAgentMetric BUFFER_BYTES_LEFT
-
BUFFER_BYTES_PER_MINUTE
public static final ExpectedAgentMetric BUFFER_BYTES_PER_MINUTE
-
CURRENT_QUEUE_SIZE
public static final ExpectedAgentMetric CURRENT_QUEUE_SIZE
-
RDNS_CACHE_SIZE
public static final ExpectedAgentMetric RDNS_CACHE_SIZE
-
-
Method Detail
-
values
public static ExpectedAgentMetric[] 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 (ExpectedAgentMetric c : ExpectedAgentMetric.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ExpectedAgentMetric valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getCombinedName
public String getCombinedName()
-
-