HEADER, IPC_THREAD_NAME_PREFIX, LOG| Constructor and Description |
|---|
RPC.Server(Object instance,
String bindAddress,
int port)
Construct an RPC server.
|
RPC.Server(Object instance,
String bindAddress,
int port,
int numHandlers)
Construct an RPC server.
|
| Modifier and Type | Method and Description |
|---|---|
IOReadableWritable |
call(Class<?> protocol,
IOReadableWritable param,
long receivedTime)
Called for each call.
|
bind, get, getCallQueueLen, getListenerAddress, getNumOpenConnections, getRemoteAddress, getRemoteIp, join, newInstance, setSocketSendBufSize, start, stoppublic RPC.Server(Object instance, String bindAddress, int port) throws IOException
instance - the instance whose methods will be calledbindAddress - the address to bind on to listen for connectionport - the port to listen for connections onIOExceptionpublic RPC.Server(Object instance, String bindAddress, int port, int numHandlers) throws IOException
instance - the instance whose methods will be calledbindAddress - the address to bind on to listen for connectionport - the port to listen for connections onnumHandlers - the number of method handler threads to runIOExceptionpublic IOReadableWritable call(Class<?> protocol, IOReadableWritable param, long receivedTime) throws IOException
Servercall in class ServerIOExceptionCopyright © 2015 The Apache Software Foundation. All rights reserved.