public enum CommonResources extends java.lang.Enum<CommonResources>
Enum Constant and Description |
---|
AVAILABLE_CORES
Number of available cores.
|
AVAILABLE_HARD_DISK
Available hard disk space.
|
AVAILABLE_MEMORY
Available memory.
|
CURRENT_WORKLOAD
Number of tasks currently being run on the agent.
|
HOSTNAME
Hostname of the agent.
|
IS64BIT_PROCESS
Whether agent can run a true 64-bit process.
|
OS_PLATFORM
The OS platform the agent is running on.
|
TOTAL_CORES
Number of CPUs available on the agent.
|
VERSION
The version the agent is running.
|
Modifier and Type | Method and Description |
---|---|
static CommonResources |
getDefault()
Get the enum constant that is considered to be the default.
|
static CommonResources |
getFromValue(int value)
Get the enum constant that is associated with the given numeric value.
|
int |
getValue()
Get the numeric value associated with this enum constant.
|
java.lang.String |
toString() |
static CommonResources |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CommonResources[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CommonResources HOSTNAME
public static final CommonResources AVAILABLE_CORES
public static final CommonResources AVAILABLE_MEMORY
public static final CommonResources AVAILABLE_HARD_DISK
public static final CommonResources CURRENT_WORKLOAD
public static final CommonResources TOTAL_CORES
public static final CommonResources IS64BIT_PROCESS
public static final CommonResources VERSION
public static final CommonResources OS_PLATFORM
public static CommonResources[] values()
for (CommonResources c : CommonResources.values()) System.out.println(c);
public static CommonResources 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 nullpublic int getValue()
public java.lang.String toString()
toString
in class java.lang.Enum<CommonResources>
public static CommonResources getFromValue(int value)
value
- a numeric value.public static CommonResources getDefault()