Package com.github.ambry.router
Enum OperationTrackerScope
- java.lang.Object
-
- java.lang.Enum<OperationTrackerScope>
-
- com.github.ambry.router.OperationTrackerScope
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<OperationTrackerScope>
public enum OperationTrackerScope extends java.lang.Enum<OperationTrackerScope>
The metric scope adopted by operation tracker. For now, the scope defines at which granularity the latency distribution should be tracked by operation tracker (i.e. Datacenter means latencies of all requests in local datacenter would be kept in a single Histogram)
-
-
Enum Constant Summary
Enum Constants Enum Constant Description Datacenter
DataNode
Disk
Partition
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static OperationTrackerScope
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static OperationTrackerScope[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Datacenter
public static final OperationTrackerScope Datacenter
-
Partition
public static final OperationTrackerScope Partition
-
DataNode
public static final OperationTrackerScope DataNode
-
Disk
public static final OperationTrackerScope Disk
-
-
Method Detail
-
values
public static OperationTrackerScope[] 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 (OperationTrackerScope c : OperationTrackerScope.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OperationTrackerScope 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
-
-