public class SecureRpcEngine extends Object implements RpcEngine
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
Modifier and Type | Class and Description |
---|---|
static class |
SecureRpcEngine.Server
An RPC Server.
|
Modifier and Type | Field and Description |
---|---|
protected static org.apache.commons.logging.Log |
LOG |
Constructor and Description |
---|
SecureRpcEngine() |
Modifier and Type | Method and Description |
---|---|
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() |
<T extends VersionedProtocol> |
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) |
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
- configurationIOException
- 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
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)
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.