org.apache.accumulo.cluster
public enum ClusterServerType extends Enum<ClusterServerType>
ServerType
is in the public API. This lets us work around that annoyance.Enum Constant and Description |
---|
GARBAGE_COLLECTOR |
MASTER |
MONITOR |
TABLET_SERVER |
TRACER |
ZOOKEEPER |
Modifier and Type | Method and Description |
---|---|
static ClusterServerType |
get(ServerType type) |
String |
prettyPrint() |
ServerType |
toServerType() |
static ClusterServerType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ClusterServerType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ClusterServerType MASTER
public static final ClusterServerType ZOOKEEPER
public static final ClusterServerType TABLET_SERVER
public static final ClusterServerType GARBAGE_COLLECTOR
public static final ClusterServerType TRACER
public static final ClusterServerType MONITOR
public static ClusterServerType[] values()
for (ClusterServerType c : ClusterServerType.values()) System.out.println(c);
public static ClusterServerType 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 String prettyPrint()
public static ClusterServerType get(ServerType type)
public ServerType toServerType()
Copyright © 2011–2016 The Apache Software Foundation. All rights reserved.