|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.ipc.RPC
public class RPC
A simple RPC mechanism. A protocol is a Java interface. All parameters and return types must be one of:
boolean
, byte
,
char
, short
, int
, long
,
float
, double
, or void
; orString
; orWritable
; or
Nested Class Summary | |
---|---|
static class |
RPC.Server
An RPC Server. |
static class |
RPC.VersionMismatch
A version mismatch for the RPC protocol. |
Method Summary | |
---|---|
static java.lang.Object[] |
call(java.lang.reflect.Method method,
java.lang.Object[][] params,
java.net.InetSocketAddress[] addrs,
Configuration conf)
Deprecated. Use call(Method, Object[][], InetSocketAddress[], UserGroupInformation, Configuration) instead |
static java.lang.Object[] |
call(java.lang.reflect.Method method,
java.lang.Object[][] params,
java.net.InetSocketAddress[] addrs,
UserGroupInformation ticket,
Configuration conf)
Expert: Make multiple, parallel calls to a set of servers. |
static VersionedProtocol |
getProxy(java.lang.Class<?> protocol,
long clientVersion,
java.net.InetSocketAddress addr,
Configuration conf)
Construct a client-side proxy object with the default SocketFactory |
static VersionedProtocol |
getProxy(java.lang.Class<?> protocol,
long clientVersion,
java.net.InetSocketAddress addr,
Configuration conf,
javax.net.SocketFactory factory)
Construct a client-side proxy object that implements the named protocol, talking to a server at the named address. |
static VersionedProtocol |
getProxy(java.lang.Class<?> protocol,
long clientVersion,
java.net.InetSocketAddress addr,
UserGroupInformation ticket,
Configuration conf,
javax.net.SocketFactory factory)
Construct a client-side proxy object that implements the named protocol, talking to a server at the named address. |
static RPC.Server |
getServer(java.lang.Object instance,
java.lang.String bindAddress,
int port,
Configuration conf)
Construct a server for a protocol implementation instance listening on a port and address. |
static RPC.Server |
getServer(java.lang.Object instance,
java.lang.String bindAddress,
int port,
int numHandlers,
boolean verbose,
Configuration conf)
Construct a server for a protocol implementation instance listening on a port and address. |
static void |
stopProxy(VersionedProtocol proxy)
Stop this proxy and release its invoker's resource |
static VersionedProtocol |
waitForProxy(java.lang.Class protocol,
long clientVersion,
java.net.InetSocketAddress addr,
Configuration conf)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static VersionedProtocol waitForProxy(java.lang.Class protocol, long clientVersion, java.net.InetSocketAddress addr, Configuration conf) throws java.io.IOException
java.io.IOException
public static VersionedProtocol getProxy(java.lang.Class<?> protocol, long clientVersion, java.net.InetSocketAddress addr, Configuration conf, javax.net.SocketFactory factory) throws java.io.IOException
java.io.IOException
public static VersionedProtocol getProxy(java.lang.Class<?> protocol, long clientVersion, java.net.InetSocketAddress addr, UserGroupInformation ticket, Configuration conf, javax.net.SocketFactory factory) throws java.io.IOException
java.io.IOException
public static VersionedProtocol getProxy(java.lang.Class<?> protocol, long clientVersion, java.net.InetSocketAddress addr, Configuration conf) throws java.io.IOException
protocol
- clientVersion
- addr
- conf
-
java.io.IOException
public static void stopProxy(VersionedProtocol proxy)
proxy
- the proxy to be stoppedpublic static java.lang.Object[] call(java.lang.reflect.Method method, java.lang.Object[][] params, java.net.InetSocketAddress[] addrs, Configuration conf) throws java.io.IOException
call(Method, Object[][], InetSocketAddress[], UserGroupInformation, Configuration)
instead
java.io.IOException
public static java.lang.Object[] call(java.lang.reflect.Method method, java.lang.Object[][] params, java.net.InetSocketAddress[] addrs, UserGroupInformation ticket, Configuration conf) throws java.io.IOException
java.io.IOException
public static RPC.Server getServer(java.lang.Object instance, java.lang.String bindAddress, int port, Configuration conf) throws java.io.IOException
java.io.IOException
public static RPC.Server getServer(java.lang.Object instance, java.lang.String bindAddress, int port, int numHandlers, boolean verbose, Configuration conf) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |