public static enum MetricsSystem.InstanceType extends Enum<MetricsSystem.InstanceType>
Enum Constant and Description |
---|
CLIENT |
CLUSTER |
FUSE |
JOB_MASTER |
JOB_WORKER |
MASTER |
PROXY |
WORKER |
Modifier and Type | Method and Description |
---|---|
static MetricsSystem.InstanceType |
fromString(String text)
Creates an instance type from the string.
|
String |
toString() |
static MetricsSystem.InstanceType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MetricsSystem.InstanceType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MetricsSystem.InstanceType JOB_MASTER
public static final MetricsSystem.InstanceType JOB_WORKER
public static final MetricsSystem.InstanceType MASTER
public static final MetricsSystem.InstanceType WORKER
public static final MetricsSystem.InstanceType CLUSTER
public static final MetricsSystem.InstanceType CLIENT
public static final MetricsSystem.InstanceType PROXY
public static final MetricsSystem.InstanceType FUSE
public static MetricsSystem.InstanceType[] values()
for (MetricsSystem.InstanceType c : MetricsSystem.InstanceType.values()) System.out.println(c);
public static MetricsSystem.InstanceType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String toString()
toString
in class Enum<MetricsSystem.InstanceType>
public static MetricsSystem.InstanceType fromString(String text)
text
- the instance type in stringCopyright © 2023. All Rights Reserved.