public enum DaemonType extends Enum<DaemonType>
The type of process/daemon that this server is running as. This is used with the IStormClusterState implementation to know how to properly secure data stored in it.
Enum Constant and Description |
---|
NIMBUS |
PACEMAKER |
SUPERVISOR |
UNKNOWN |
WORKER |
Modifier and Type | Field and Description |
---|---|
static List<org.apache.storm.shade.org.apache.zookeeper.data.ACL> |
NIMBUS_SUPERVISOR_ZK_ACLS |
Modifier and Type | Method and Description |
---|---|
List<org.apache.storm.shade.org.apache.zookeeper.data.ACL> |
getDefaultZkAcls(Map<String,Object> conf)
Get the default ZK ACLs that should be used for a given daemon type.
|
List<org.apache.storm.shade.org.apache.zookeeper.data.ACL> |
getZkSecretAcls(WorkerTokenServiceType type,
Map<String,Object> conf)
Get the ACLs to store a secret for a given service.
|
static DaemonType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DaemonType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DaemonType SUPERVISOR
public static final DaemonType NIMBUS
public static final DaemonType WORKER
public static final DaemonType PACEMAKER
public static final DaemonType UNKNOWN
public static final List<org.apache.storm.shade.org.apache.zookeeper.data.ACL> NIMBUS_SUPERVISOR_ZK_ACLS
public static DaemonType[] values()
for (DaemonType c : DaemonType.values()) System.out.println(c);
public static DaemonType 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 List<org.apache.storm.shade.org.apache.zookeeper.data.ACL> getDefaultZkAcls(Map<String,Object> conf)
Get the default ZK ACLs that should be used for a given daemon type.
conf
- the config used to help get the correct ACLs.public List<org.apache.storm.shade.org.apache.zookeeper.data.ACL> getZkSecretAcls(WorkerTokenServiceType type, Map<String,Object> conf)
Get the ACLs to store a secret for a given service.
type
- the type of service the secret is for.conf
- the cluster configuration.Copyright © 2020 The Apache Software Foundation. All rights reserved.