enum MachineMetric extends java.lang.Enum<MachineMetric> implements MetricType
Modifier and Type | Class and Description |
---|---|
private static class |
MachineMetric._
An internal class used to holds static constants used by the enum.
|
private static class |
MachineMetric.Dim
Dimensions.
|
private static class |
MachineMetric.MetricName
Machine metric names.
|
Enum Constant and Description |
---|
DaemonThreadCount |
DeadLockThreadCount |
FreeMemory |
OpenFileDescriptorCount |
PeakThreadCount |
SpareFileDescriptorCount |
SpareMemory |
ThreadCount |
TotalMemory |
TotalStartedThreadCount |
UsedMemory |
Modifier and Type | Field and Description |
---|---|
private MachineMetric.Dim |
dimension |
private boolean |
includeZeroValue |
private MachineMetric.MetricName |
metricName |
Modifier and Type | Method and Description |
---|---|
(package private) java.lang.String |
getDimensionName() |
(package private) java.lang.String |
getMetricName() |
(package private) static java.lang.String |
getOSMetricName()
Returns the metric name for OS metrics.
|
(package private) boolean |
includeZeroValue() |
static MachineMetric |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MachineMetric[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
name
public static final MachineMetric TotalMemory
public static final MachineMetric FreeMemory
public static final MachineMetric UsedMemory
public static final MachineMetric SpareMemory
public static final MachineMetric ThreadCount
public static final MachineMetric DeadLockThreadCount
public static final MachineMetric DaemonThreadCount
public static final MachineMetric PeakThreadCount
public static final MachineMetric TotalStartedThreadCount
public static final MachineMetric OpenFileDescriptorCount
public static final MachineMetric SpareFileDescriptorCount
private final MachineMetric.Dim dimension
private final boolean includeZeroValue
private final MachineMetric.MetricName metricName
public static MachineMetric[] values()
for (MachineMetric c : MachineMetric.values()) System.out.println(c);
public static MachineMetric valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nulljava.lang.String getDimensionName()
java.lang.String getMetricName()
boolean includeZeroValue()
static java.lang.String getOSMetricName()