Enum Class DefaultMetricsFactory

java.lang.Object
java.lang.Enum<DefaultMetricsFactory>
org.apache.hadoop.metrics2.lib.DefaultMetricsFactory
All Implemented Interfaces:
Serializable, Comparable<DefaultMetricsFactory>, Constable

@Private public enum DefaultMetricsFactory extends Enum<DefaultMetricsFactory>
Experimental interface to extend metrics dynamically
  • Enum Constant Details

  • Method Details

    • values

      public static DefaultMetricsFactory[] 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

      public static DefaultMetricsFactory valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getAnnotatedMetricsFactory

      public static MutableMetricsFactory getAnnotatedMetricsFactory()
    • getInstance

      public <T> T getInstance(Class<T> cls)
    • setInstance

      public void setInstance(MutableMetricsFactory factory)