public class SecureClient extends HBaseClient
This is a copy of org.apache.hadoop.ipc.Client from secure Hadoop,
reworked to remove code duplicated with
org.apache.hadoop.hbase.HBaseClient
. This is part of the loadable
SecureRpcEngine
, and only functions in connection with a
SecureServer
instance.
Modifier and Type | Class and Description |
---|---|
protected class |
SecureClient.SecureConnection
Thread that reads responses and notifies callers.
|
HBaseClient.Call, HBaseClient.CallTimeoutException, HBaseClient.Connection, HBaseClient.ConnectionId, HBaseClient.FailedServerException, HBaseClient.ParallelCall, HBaseClient.ParallelResults
Modifier and Type | Field and Description |
---|---|
static boolean |
IPC_CLIENT_FALLBACK_TO_SIMPLE_AUTH_ALLOWED_DEFAULT |
static String |
IPC_CLIENT_FALLBACK_TO_SIMPLE_AUTH_ALLOWED_KEY |
protected static Map<String,org.apache.hadoop.security.token.TokenSelector<? extends org.apache.hadoop.security.token.TokenIdentifier>> |
tokenHandlers |
bindAddress, clusterId, conf, connections, counter, FAILED_SERVER_EXPIRY_DEFAULT, FAILED_SERVER_EXPIRY_KEY, failedServers, failureSleep, maxIdleTime, maxRetries, pingInterval, running, socketFactory, socketTimeout, tcpKeepAlive, tcpNoDelay, valueClass
Constructor and Description |
---|
SecureClient(Class<? extends org.apache.hadoop.io.Writable> valueClass,
org.apache.hadoop.conf.Configuration conf,
SocketFactory factory,
UserProvider provider)
Construct an IPC client whose values are of the given
Writable
class. |
SecureClient(Class<? extends org.apache.hadoop.io.Writable> valueClass,
org.apache.hadoop.conf.Configuration conf,
UserProvider provider)
Construct an IPC client with the default SocketFactory
|
Modifier and Type | Method and Description |
---|---|
protected SecureClient.SecureConnection |
createConnection(HBaseClient.ConnectionId remoteId)
Creates a SecureConnection.
|
call, call, call, call, call, getClusterId, getConnection, getPoolSize, getPoolType, setPingInterval, setSocketTimeout, stop, wrapException
public static final String IPC_CLIENT_FALLBACK_TO_SIMPLE_AUTH_ALLOWED_KEY
public static final boolean IPC_CLIENT_FALLBACK_TO_SIMPLE_AUTH_ALLOWED_DEFAULT
public SecureClient(Class<? extends org.apache.hadoop.io.Writable> valueClass, org.apache.hadoop.conf.Configuration conf, SocketFactory factory, UserProvider provider)
Writable
class.valueClass
- value classconf
- configurationfactory
- socket factorypublic SecureClient(Class<? extends org.apache.hadoop.io.Writable> valueClass, org.apache.hadoop.conf.Configuration conf, UserProvider provider)
valueClass
- value classconf
- configurationprotected SecureClient.SecureConnection createConnection(HBaseClient.ConnectionId remoteId) throws IOException
createConnection
in class HBaseClient
remoteId
- - the ConnectionId to use for the connection creation.IOException
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.