@InterfaceAudience.Private
public interface RpcEngine
extends org.apache.hadoop.conf.Configurable
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
|
<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.
|
RpcServer |
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.
|
<T extends VersionedProtocol> T getProxy(Class<T> protocol, long clientVersion, InetSocketAddress addr, org.apache.hadoop.conf.Configuration conf, int rpcTimeout) throws IOException
IOException
void close()
Object[] call(Method method, Object[][] params, InetSocketAddress[] addrs, Class<? extends VersionedProtocol> protocol, User ticket, org.apache.hadoop.conf.Configuration conf) throws IOException, InterruptedException
IOException
InterruptedException
RpcServer 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
IOException
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.