@InterfaceAudience.Public @InterfaceStability.Evolving public enum DefaultMetricsSystem extends Enum<DefaultMetricsSystem>
init(String)
to initialize the MetricsSystem
.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 void |
setMiniClusterMode(boolean choice) |
static void |
shutdown()
Shutdown the metrics system
|
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()
@VisibleForTesting public static void setMiniClusterMode(boolean choice)
@VisibleForTesting public static boolean inMiniClusterMode()
Copyright © 2023 Apache Software Foundation. All rights reserved.