Server.Connection
CURRENT_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, stop
public 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 onIOException
public 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 loggedIOException
public Writable call(Class<?> protocol, Writable param, long receivedTime) throws IOException
Server
call
在类中 Server
IOException
Copyright © 2009 The Apache Software Foundation