|
||||||||||
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 Object[] |
call(Method method,
Object[][] params,
InetSocketAddress[] addrs,
Configuration conf)
Expert: Make multiple, parallel calls to a set of servers. |
static VersionedProtocol |
getProxy(Class protocol,
long clientVersion,
InetSocketAddress addr,
Configuration conf)
Construct a client-side proxy object that implements the named protocol, talking to a server at the named address. |
static RPC.Server |
getServer(Object instance,
int port,
Configuration conf)
Construct a server for a protocol implementation instance listening on a port. |
static RPC.Server |
getServer(Object instance,
int port,
int numHandlers,
boolean verbose,
Configuration conf)
Construct a server for a protocol implementation instance listening on a port. |
static void |
stopClient()
Stop all RPC client connections |
static VersionedProtocol |
waitForProxy(Class protocol,
long clientVersion,
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 void stopClient()
public static VersionedProtocol waitForProxy(Class protocol, long clientVersion, InetSocketAddress addr, Configuration conf) throws IOException
IOException
public static VersionedProtocol getProxy(Class protocol, long clientVersion, InetSocketAddress addr, Configuration conf) throws IOException
IOException
public static Object[] call(Method method, Object[][] params, InetSocketAddress[] addrs, Configuration conf) throws IOException
IOException
public static RPC.Server getServer(Object instance, int port, Configuration conf)
public static RPC.Server getServer(Object instance, int port, int numHandlers, boolean verbose, Configuration conf)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |