Enum CacheMetric
- java.lang.Object
-
- java.lang.Enum<CacheMetric>
-
- org.jboss.as.clustering.infinispan.subsystem.CacheMetric
-
- All Implemented Interfaces:
Serializable,Comparable<CacheMetric>,Function<org.jboss.as.controller.SimpleAttributeDefinitionBuilder,org.jboss.as.controller.SimpleAttributeDefinitionBuilder>,UnaryOperator<org.jboss.as.controller.SimpleAttributeDefinitionBuilder>,Attribute,Definable<org.jboss.as.controller.AttributeDefinition>,Executable<org.infinispan.interceptors.impl.CacheMgmtInterceptor>,Metric<org.infinispan.interceptors.impl.CacheMgmtInterceptor>
public enum CacheMetric extends Enum<CacheMetric> implements Metric<org.infinispan.interceptors.impl.CacheMgmtInterceptor>, UnaryOperator<org.jboss.as.controller.SimpleAttributeDefinitionBuilder>
Enumeration of management metrics for a cache.- Author:
- Paul Ferraro
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AVERAGE_READ_TIMEAVERAGE_REMOVE_TIMEAVERAGE_WRITE_TIMEEVICTIONSHIT_RATIOHITSMISSESNUMBER_OF_ENTRIESDeprecated.NUMBER_OF_ENTRIES_IN_MEMORYDeprecated.READ_WRITE_RATIOREMOVE_HITSREMOVE_MISSESTIME_SINCE_RESETTIME_SINCE_STARTWRITES
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.jboss.as.controller.SimpleAttributeDefinitionBuilderapply(org.jboss.as.controller.SimpleAttributeDefinitionBuilder builder)org.jboss.as.controller.AttributeDefinitiongetDefinition()static CacheMetricvalueOf(String name)Returns the enum constant of this type with the specified name.static CacheMetric[]values()Returns an array containing the constants of this enum type, in the order they are declared.-
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Methods inherited from interface org.jboss.as.clustering.controller.Attribute
getName, resolveModelAttribute
-
Methods inherited from interface org.jboss.as.clustering.controller.Executable
execute
-
-
-
-
Enum Constant Detail
-
AVERAGE_READ_TIME
public static final CacheMetric AVERAGE_READ_TIME
-
AVERAGE_REMOVE_TIME
public static final CacheMetric AVERAGE_REMOVE_TIME
-
AVERAGE_WRITE_TIME
public static final CacheMetric AVERAGE_WRITE_TIME
-
EVICTIONS
public static final CacheMetric EVICTIONS
-
HIT_RATIO
public static final CacheMetric HIT_RATIO
-
HITS
public static final CacheMetric HITS
-
MISSES
public static final CacheMetric MISSES
-
NUMBER_OF_ENTRIES
@Deprecated public static final CacheMetric NUMBER_OF_ENTRIES
Deprecated.
-
NUMBER_OF_ENTRIES_IN_MEMORY
@Deprecated public static final CacheMetric NUMBER_OF_ENTRIES_IN_MEMORY
Deprecated.
-
READ_WRITE_RATIO
public static final CacheMetric READ_WRITE_RATIO
-
REMOVE_HITS
public static final CacheMetric REMOVE_HITS
-
REMOVE_MISSES
public static final CacheMetric REMOVE_MISSES
-
TIME_SINCE_RESET
public static final CacheMetric TIME_SINCE_RESET
-
TIME_SINCE_START
public static final CacheMetric TIME_SINCE_START
-
WRITES
public static final CacheMetric WRITES
-
-
Method Detail
-
values
public static CacheMetric[] 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 (CacheMetric c : CacheMetric.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CacheMetric 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
-
apply
public org.jboss.as.controller.SimpleAttributeDefinitionBuilder apply(org.jboss.as.controller.SimpleAttributeDefinitionBuilder builder)
-
getDefinition
public org.jboss.as.controller.AttributeDefinition getDefinition()
- Specified by:
getDefinitionin interfaceDefinable<org.jboss.as.controller.AttributeDefinition>
-
-