com.netflix.servo.util
Enum ThreadCpuStats.CpuUsageComparator
java.lang.Object
java.lang.Enum<ThreadCpuStats.CpuUsageComparator>
com.netflix.servo.util.ThreadCpuStats.CpuUsageComparator
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<ThreadCpuStats.CpuUsageComparator>, java.util.Comparator<ThreadCpuStats.CpuUsage>
- Enclosing class:
- ThreadCpuStats
public static enum ThreadCpuStats.CpuUsageComparator
- extends java.lang.Enum<ThreadCpuStats.CpuUsageComparator>
- implements java.util.Comparator<ThreadCpuStats.CpuUsage>
Comparator for sorting cpu usage based on one of the columns.
Methods inherited from class java.lang.Enum |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Comparator |
equals |
ONE_MINUTE
public static final ThreadCpuStats.CpuUsageComparator ONE_MINUTE
FIVE_MINUTE
public static final ThreadCpuStats.CpuUsageComparator FIVE_MINUTE
FIFTEEN_MINUTE
public static final ThreadCpuStats.CpuUsageComparator FIFTEEN_MINUTE
OVERALL
public static final ThreadCpuStats.CpuUsageComparator OVERALL
values
public static ThreadCpuStats.CpuUsageComparator[] 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 (ThreadCpuStats.CpuUsageComparator c : ThreadCpuStats.CpuUsageComparator.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static ThreadCpuStats.CpuUsageComparator 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 name
java.lang.NullPointerException
- if the argument is null
compare
public int compare(ThreadCpuStats.CpuUsage u1,
ThreadCpuStats.CpuUsage u2)
-
- Specified by:
compare
in interface java.util.Comparator<ThreadCpuStats.CpuUsage>