public enum ThriftConnectionType extends Enum<ThriftConnectionType>
The purpose for which the Thrift server is created.
Enum Constant and Description |
---|
DRPC |
DRPC_INVOCATIONS |
LOCAL_FAKE |
NIMBUS |
SUPERVISOR |
Modifier and Type | Method and Description |
---|---|
int |
getMaxBufferSize(Map<String,Object> conf) |
int |
getNumThreads(Map<String,Object> conf) |
int |
getPort(Map<String,Object> conf) |
Integer |
getQueueSize(Map<String,Object> conf) |
Integer |
getSocketTimeOut(Map<String,Object> conf) |
String |
getTransportPlugin(Map<String,Object> conf) |
WorkerTokenServiceType |
getWtType()
Get the corresponding worker token type for this thrift connection.
|
boolean |
isFake() |
boolean |
isImpersonationAllowed()
Check if SASL impersonation is allowed for this transport type.
|
static ThriftConnectionType |
valueOf(String name)
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.
|
public static final ThriftConnectionType NIMBUS
public static final ThriftConnectionType SUPERVISOR
public static final ThriftConnectionType DRPC
public static final ThriftConnectionType DRPC_INVOCATIONS
public static final ThriftConnectionType LOCAL_FAKE
public static ThriftConnectionType[] values()
for (ThriftConnectionType c : ThriftConnectionType.values()) System.out.println(c);
public static ThriftConnectionType 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 boolean isFake()
public WorkerTokenServiceType getWtType()
Get the corresponding worker token type for this thrift connection.
public boolean isImpersonationAllowed()
Check if SASL impersonation is allowed for this transport type.
Copyright © 2019 The Apache Software Foundation. All rights reserved.