com.nhncorp.neptune.common.ipc
Class NRPC.Server
java.lang.Object
com.nhncorp.neptune.common.ipc.NServer
com.nhncorp.neptune.common.ipc.NRPC.Server
- Enclosing class:
- NRPC
public static class NRPC.Server
- extends NServer
An RPC Server.
|
Constructor Summary |
NRPC.Server(com.nhncorp.pleiades.client.LockService lockService,
java.lang.Object instance,
NConfiguration conf,
java.lang.String bindAddress,
int port)
Construct an RPC server. |
NRPC.Server(com.nhncorp.pleiades.client.LockService lockService,
java.lang.Object instance,
NConfiguration conf,
java.lang.String bindAddress,
int port,
int numHandlers,
boolean verbose)
Construct an RPC server. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NRPC.Server
public NRPC.Server(com.nhncorp.pleiades.client.LockService lockService,
java.lang.Object instance,
NConfiguration conf,
java.lang.String bindAddress,
int port)
throws java.io.IOException
- Construct an RPC server.
- Parameters:
instance - the instance whose methods will be calledconf - the configuration to usebindAddress - the address to bind on to listen for connectionport - the port to listen for connections on
- Throws:
java.io.IOException
NRPC.Server
public NRPC.Server(com.nhncorp.pleiades.client.LockService lockService,
java.lang.Object instance,
NConfiguration conf,
java.lang.String bindAddress,
int port,
int numHandlers,
boolean verbose)
throws java.io.IOException
- Construct an RPC server.
- Parameters:
instance - the instance whose methods will be calledconf - the configuration to usebindAddress - the address to bind on to listen for connectionport - the port to listen for connections onnumHandlers - the number of method handler threads to runverbose - whether each call should be logged
- Throws:
java.io.IOException
call
public NWritable call(NWritable param)
throws java.io.IOException
- Description copied from class:
NServer
- Called for each call.
- Specified by:
call in class NServer
- Throws:
java.io.IOException