Package org.apache.cassandra.metrics
Enum Sampler.SamplerType
- java.lang.Object
-
- java.lang.Enum<Sampler.SamplerType>
-
- org.apache.cassandra.metrics.Sampler.SamplerType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Sampler.SamplerType>
public static enum Sampler.SamplerType extends java.lang.Enum<Sampler.SamplerType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CAS_CONTENTIONS
LOCAL_READ_TIME
READS
WRITE_SIZE
WRITES
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Sampler.SamplerType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Sampler.SamplerType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
READS
public static final Sampler.SamplerType READS
-
WRITES
public static final Sampler.SamplerType WRITES
-
LOCAL_READ_TIME
public static final Sampler.SamplerType LOCAL_READ_TIME
-
WRITE_SIZE
public static final Sampler.SamplerType WRITE_SIZE
-
CAS_CONTENTIONS
public static final Sampler.SamplerType CAS_CONTENTIONS
-
-
Method Detail
-
values
public static Sampler.SamplerType[] 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 (Sampler.SamplerType c : Sampler.SamplerType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Sampler.SamplerType valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-