org.apache.hadoop.ipc
Class RPC.Server
java.lang.Object
org.apache.hadoop.ipc.Server
org.apache.hadoop.ipc.RPC.Server
- Enclosing class:
- RPC
public static class RPC.Server
- extends Server
An RPC Server.
Methods inherited from class org.apache.hadoop.ipc.Server |
authorize, bind, call, get, getCallQueueLen, getListenerAddress, getNumOpenConnections, getRemoteAddress, getRemoteIp, getRpcMetrics, join, setSocketSendBufSize, start, stop |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RPC.Server
public RPC.Server(Object instance,
Configuration conf,
String bindAddress,
int port)
throws 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:
IOException
RPC.Server
public RPC.Server(Object instance,
Configuration conf,
String bindAddress,
int port,
int numHandlers,
boolean verbose,
SecretManager<? extends TokenIdentifier> secretManager)
throws 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:
IOException
call
public Writable call(Class<?> protocol,
Writable param,
long receivedTime)
throws IOException
- Description copied from class:
Server
- Called for each call.
- Specified by:
call
in class Server
- Throws:
IOException
Copyright © 2009 The Apache Software Foundation