Server.ConnectionCURRENT_VERSION, HEADER, LOG, rpcMetrics| 构造器和说明 |
|---|
RPC.Server(Object instance,
Configuration conf,
String bindAddress,
int port)
Construct an RPC server.
|
RPC.Server(Object instance,
Configuration conf,
String bindAddress,
int port,
int numHandlers,
boolean verbose,
SecretManager<? extends TokenIdentifier> secretManager)
Construct an RPC server.
|
| 限定符和类型 | 方法和说明 |
|---|---|
Writable |
call(Class<?> protocol,
Writable param,
long receivedTime)
Called for each call.
|
addTerseExceptions, authorize, bind, call, get, getCallQueueLen, getListenerAddress, getNumOpenConnections, getRemoteAddress, getRemoteIp, getRpcMetrics, join, setSocketSendBufSize, start, stoppublic RPC.Server(Object instance, Configuration conf, String bindAddress, int port) throws IOException
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 onIOExceptionpublic RPC.Server(Object instance, Configuration conf, String bindAddress, int port, int numHandlers, boolean verbose, SecretManager<? extends TokenIdentifier> secretManager) throws IOException
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 loggedIOExceptionpublic Writable call(Class<?> protocol, Writable param, long receivedTime) throws IOException
Servercall 在类中 ServerIOExceptionCopyright © 2009 The Apache Software Foundation