Package org.apache.storm.security.auth
Enum ThriftConnectionType
- All Implemented Interfaces:
Serializable
,Comparable<ThriftConnectionType>
,java.lang.constant.Constable
The purpose for which the Thrift server is created.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getMaxBufferSize
(Map<String, Object> conf) int
getNumThreads
(Map<String, Object> conf) int
getQueueSize
(Map<String, Object> conf) getSocketTimeOut
(Map<String, Object> conf) getTransportPlugin
(Map<String, Object> conf) Get the corresponding worker token type for this thrift connection.boolean
isFake()
boolean
Check if SASL impersonation is allowed for this transport type.static ThriftConnectionType
Returns the enum constant of this type with the specified name.static ThriftConnectionType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NIMBUS
-
SUPERVISOR
-
DRPC
-
DRPC_INVOCATIONS
-
LOCAL_FAKE
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
isFake
public boolean isFake() -
getTransportPlugin
-
getPort
-
getQueueSize
-
getNumThreads
-
getMaxBufferSize
-
getSocketTimeOut
-
getWtType
Get the corresponding worker token type for this thrift connection. -
isImpersonationAllowed
public boolean isImpersonationAllowed()Check if SASL impersonation is allowed for this transport type.- Returns:
- true if it is else false.
-