Enum CacheMetricsOperation
- java.lang.Object
-
- java.lang.Enum<CacheMetricsOperation>
-
- org.apache.ignite.internal.management.cache.CacheMetricsOperation
-
- All Implemented Interfaces:
Serializable,Comparable<CacheMetricsOperation>
public enum CacheMetricsOperation extends Enum<CacheMetricsOperation>
Enum for cache metrics command operations.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static @Nullable CacheMetricsOperationof(String strRep)StringtoString()static CacheMetricsOperationvalueOf(String name)Returns the enum constant of this type with the specified name.static CacheMetricsOperation[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ENABLE
public static final CacheMetricsOperation ENABLE
Enable operation.
-
DISABLE
public static final CacheMetricsOperation DISABLE
Disable operation.
-
STATUS
public static final CacheMetricsOperation STATUS
Status operation.
-
-
Method Detail
-
values
public static CacheMetricsOperation[] 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 (CacheMetricsOperation c : CacheMetricsOperation.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CacheMetricsOperation 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
-
of
@Nullable public static @Nullable CacheMetricsOperation of(String strRep)
- Parameters:
strRep- String representation of operation.- Returns:
- Operation corresponding to the specified string representation.
-
toString
public String toString()
- Overrides:
toStringin classEnum<CacheMetricsOperation>
-
-