Package com.hazelcast.jet.core.metrics
Enum Class Unit
- All Implemented Interfaces:
Serializable
,Comparable<Unit>
,Constable
Measurement unit of user-defined metrics (see
Metric
). Meant to
provide further information on the type of value measured by user
metrics.
The unit values will end up populating the metric tag MetricTags.UNIT
. It can be used by UI tools to format the value, and it's
not used by Jet itself.
- Since:
- Jet 4.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
-
Enum Constant Details
-
BYTES
Size, counter, represented in bytes -
MS
Timestamp or duration represented in ms -
PERCENT
An integer in range 0..100 -
COUNT
Number of items: size, counter... -
BOOLEAN
0 or 1 -
ENUM
0..n, ordinal of an enum
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-