Package org.apache.accumulo.server.rpc
Enum ThriftServerType
- java.lang.Object
-
- java.lang.Enum<ThriftServerType>
-
- org.apache.accumulo.server.rpc.ThriftServerType
-
- All Implemented Interfaces:
Serializable
,Comparable<ThriftServerType>
public enum ThriftServerType extends Enum<ThriftServerType>
The type of configured Thrift server to start. This is meant more as a developer knob to ensure that appropriate Thrift servers can be constructed to make a better test on the overhead of SSL or SASL. Both SSL and SASL don't presently work with TFramedTransport which means that the Thrift servers with asynchronous support will fail with these transports. As such, we want to ensure that any benchmarks against "unsecure" Accumulo use the same type of Thrift server.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CUSTOM_HS_HA
SASL
SSL
THREADED_SELECTOR
THREADPOOL
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ThriftServerType
get(String name)
static ThriftServerType
getDefault()
String
toString()
static ThriftServerType
valueOf(String name)
Returns the enum constant of this type with the specified name.static ThriftServerType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CUSTOM_HS_HA
public static final ThriftServerType CUSTOM_HS_HA
-
THREADPOOL
public static final ThriftServerType THREADPOOL
-
SSL
public static final ThriftServerType SSL
-
SASL
public static final ThriftServerType SASL
-
THREADED_SELECTOR
public static final ThriftServerType THREADED_SELECTOR
-
-
Method Detail
-
values
public static ThriftServerType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ThriftServerType c : ThriftServerType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ThriftServerType valueOf(String name)
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
-
get
public static ThriftServerType get(String name)
-
toString
public String toString()
- Overrides:
toString
in classEnum<ThriftServerType>
-
getDefault
public static ThriftServerType getDefault()
-
-