@InterfaceAudience.Public @InterfaceStability.Evolving public enum DefaultMetricsSystem extends Enum<DefaultMetricsSystem>
Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Method and Description |
---|---|
static MetricsSystem |
initialize(String prefix)
Convenience method to initialize the metrics system
|
static boolean |
inMiniClusterMode() |
static MetricsSystem |
instance() |
static ObjectName |
newMBeanName(String name) |
static MetricsSystem |
setInstance(MetricsSystem ms) |
static void |
setMiniClusterMode(boolean choice) |
static void |
shutdown()
Shutdown the metrics system
|
static String |
sourceName(String name,
boolean dupOK) |
static DefaultMetricsSystem |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DefaultMetricsSystem[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DefaultMetricsSystem INSTANCE
public static DefaultMetricsSystem[] values()
for (DefaultMetricsSystem c : DefaultMetricsSystem.values()) System.out.println(c);
public static DefaultMetricsSystem valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic static MetricsSystem initialize(String prefix)
prefix
- for the metrics system configurationpublic static MetricsSystem instance()
public static void shutdown()
@InterfaceAudience.Private public static MetricsSystem setInstance(MetricsSystem ms)
@InterfaceAudience.Private public static void setMiniClusterMode(boolean choice)
@InterfaceAudience.Private public static boolean inMiniClusterMode()
@InterfaceAudience.Private public static ObjectName newMBeanName(String name)
@InterfaceAudience.Private public static String sourceName(String name, boolean dupOK)
Copyright © 2013 Apache Software Foundation. All rights reserved.