Package org.apache.storm.cluster
Enum Class DaemonType
- All Implemented Interfaces:
- Serializable,- Comparable<DaemonType>,- Constable
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.
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum Constants
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final List<org.apache.storm.shade.org.apache.zookeeper.data.ACL>
- 
Method SummaryModifier and TypeMethodDescriptionList<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 DaemonTypeReturns the enum constant of this class with the specified name.static DaemonType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
- 
Enum Constant Details- 
SUPERVISOR
- 
NIMBUS
- 
WORKER
- 
PACEMAKER
- 
UNKNOWN
 
- 
- 
Field Details- 
NIMBUS_SUPERVISOR_ZK_ACLSpublic static final List<org.apache.storm.shade.org.apache.zookeeper.data.ACL> NIMBUS_SUPERVISOR_ZK_ACLS
 
- 
- 
Method Details- 
valuesReturns 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
 
- 
valueOfReturns 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
 
- 
getDefaultZkAclspublic 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.- Parameters:
- conf- the config used to help get the correct ACLs.
- Returns:
- the list of acls. null means no acls.
 
- 
getZkSecretAclspublic 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.- Parameters:
- type- the type of service the secret is for.
- conf- the cluster configuration.
- Returns:
- the ACLs
 
 
-