|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.ipc.SecureRpcEngine
public class SecureRpcEngine
A loadable RPC engine supporting SASL authentication of connections, using GSSAPI for Kerberos authentication or DIGEST-MD5 for authentication via signed tokens.
This is a fork of the org.apache.hadoop.ipc.WriteableRpcEngine
from
secure Hadoop, reworked to eliminate code duplication with the existing
HBase WritableRpcEngine
.
SecureClient
,
SecureServer
Nested Class Summary | |
---|---|
static class |
SecureRpcEngine.Server
An RPC Server. |
Field Summary | |
---|---|
protected static org.apache.commons.logging.Log |
LOG
|
Constructor Summary | |
---|---|
SecureRpcEngine()
|
Method Summary | ||
---|---|---|
Object[] |
call(Method method,
Object[][] params,
InetSocketAddress[] addrs,
Class<? extends VersionedProtocol> protocol,
User ticket,
org.apache.hadoop.conf.Configuration conf)
Expert: Make multiple, parallel calls to a set of servers. |
|
void |
close()
Shutdown this instance |
|
org.apache.hadoop.conf.Configuration |
getConf()
|
|
|
getProxy(Class<T> protocol,
long clientVersion,
InetSocketAddress addr,
org.apache.hadoop.conf.Configuration conf,
int rpcTimeout)
Construct a client-side proxy object that implements the named protocol, talking to a server at the named address. |
|
SecureRpcEngine.Server |
getServer(Class<? extends VersionedProtocol> protocol,
Object instance,
Class<?>[] ifaces,
String bindAddress,
int port,
int numHandlers,
int metaHandlerCount,
boolean verbose,
org.apache.hadoop.conf.Configuration conf,
int highPriorityLevel)
Construct a server for a protocol implementation instance listening on a port and address, with a secret manager. |
|
protected static void |
log(String value)
|
|
void |
setConf(org.apache.hadoop.conf.Configuration config)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final org.apache.commons.logging.Log LOG
Constructor Detail |
---|
public SecureRpcEngine()
Method Detail |
---|
public void setConf(org.apache.hadoop.conf.Configuration config)
setConf
in interface org.apache.hadoop.conf.Configurable
public org.apache.hadoop.conf.Configuration getConf()
getConf
in interface org.apache.hadoop.conf.Configurable
public <T extends VersionedProtocol> T getProxy(Class<T> protocol, long clientVersion, InetSocketAddress addr, org.apache.hadoop.conf.Configuration conf, int rpcTimeout) throws IOException
getProxy
in interface RpcEngine
protocol
- interfaceclientVersion
- version we are expectingaddr
- remote addressconf
- configuration
IOException
- epublic Object[] call(Method method, Object[][] params, InetSocketAddress[] addrs, Class<? extends VersionedProtocol> protocol, User ticket, org.apache.hadoop.conf.Configuration conf) throws IOException, InterruptedException
call
in interface RpcEngine
IOException
InterruptedException
public void close()
RpcEngine
close
in interface RpcEngine
public SecureRpcEngine.Server getServer(Class<? extends VersionedProtocol> protocol, Object instance, Class<?>[] ifaces, String bindAddress, int port, int numHandlers, int metaHandlerCount, boolean verbose, org.apache.hadoop.conf.Configuration conf, int highPriorityLevel) throws IOException
getServer
in interface RpcEngine
IOException
protected static void log(String value)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |