public enum ThriftConnectionType extends Enum<ThriftConnectionType>
The purpose for which the Thrift server is created.
| Enum Constant and Description |
|---|
DRPC |
DRPC_INVOCATIONS |
NIMBUS |
| Modifier and Type | Method and Description |
|---|---|
int |
getMaxBufferSize(Map conf)
Deprecated.
As SimpleTrasportPlugin is deprecated, no other thrift transport plugin uses this method.
|
int |
getNumThreads(Map conf) |
int |
getPort(Map conf) |
Integer |
getQueueSize(Map conf) |
Integer |
getSocketTimeOut(Map conf) |
String |
getTransportPlugin(Map conf) |
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 DRPC
public static final ThriftConnectionType DRPC_INVOCATIONS
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 int getPort(Map conf)
public int getNumThreads(Map conf)
@Deprecated public int getMaxBufferSize(Map conf)
conf - public boolean isImpersonationAllowed()
Check if SASL impersonation is allowed for this transport type.
Copyright © 2022 The Apache Software Foundation. All Rights Reserved.