Enum CacheMetric

  • All Implemented Interfaces:
    Serializable, Comparable<CacheMetric>, org.jboss.as.clustering.controller.Attribute, org.jboss.as.clustering.controller.Definable<org.jboss.as.controller.AttributeDefinition>, org.jboss.as.clustering.controller.Executable<org.infinispan.interceptors.impl.CacheMgmtInterceptor>, org.jboss.as.clustering.controller.Metric<org.infinispan.interceptors.impl.CacheMgmtInterceptor>

    public enum CacheMetric
    extends Enum<CacheMetric>
    implements org.jboss.as.clustering.controller.Metric<org.infinispan.interceptors.impl.CacheMgmtInterceptor>
    Enumeration of management metrics for a cache.
    Author:
    Paul Ferraro
    • 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
      • NUMBER_OF_ENTRIES

        public static final CacheMetric NUMBER_OF_ENTRIES
      • NUMBER_OF_ENTRIES_IN_MEMORY

        public static final CacheMetric NUMBER_OF_ENTRIES_IN_MEMORY
      • 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
    • 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 name
        NullPointerException - if the argument is null
      • getDefinition

        public org.jboss.as.controller.AttributeDefinition getDefinition()
        Specified by:
        getDefinition in interface org.jboss.as.clustering.controller.Definable<org.jboss.as.controller.AttributeDefinition>