public class RPC extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
RPC.Server
An RPC Server.
|
| Modifier and Type | Method and Description |
|---|---|
static <V extends VersionedProtocol> |
getProxy(Class<V> protocol,
InetSocketAddress addr)
Construct a client-side proxy object with the default SocketFactory
|
static <V extends VersionedProtocol> |
getProxy(Class<V> protocol,
InetSocketAddress addr,
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(Object instance,
String bindAddress,
int port,
int numHandlers)
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(Class<? extends VersionedProtocol> protocol,
InetSocketAddress addr) |
public static VersionedProtocol waitForProxy(Class<? extends VersionedProtocol> protocol, InetSocketAddress addr) throws IOException
IOExceptionpublic static <V extends VersionedProtocol> V getProxy(Class<V> protocol, InetSocketAddress addr, SocketFactory factory) throws IOException
IOExceptionpublic static <V extends VersionedProtocol> V getProxy(Class<V> protocol, InetSocketAddress addr) throws IOException
IOExceptionpublic static void stopProxy(VersionedProtocol proxy)
proxy - the proxy to be stoppedpublic static RPC.Server getServer(Object instance, String bindAddress, int port, int numHandlers) throws IOException
IOExceptionCopyright © 2015 The Apache Software Foundation. All rights reserved.