|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.ipc.Server
org.apache.hadoop.ipc.RPC.Server
public static class RPC.Server
An RPC Server.
Field Summary |
---|
Fields inherited from class org.apache.hadoop.ipc.Server |
---|
LOG |
Constructor Summary | |
---|---|
RPC.Server(Object instance,
Configuration conf,
int port)
Deprecated. the bind address should always be specified |
|
RPC.Server(Object instance,
Configuration conf,
int port,
int numHandlers,
boolean verbose)
Deprecated. the bind address should always be specified |
|
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)
Construct an RPC server. |
Method Summary | |
---|---|
Writable |
call(Writable param)
Called for each call. |
Methods inherited from class org.apache.hadoop.ipc.Server |
---|
get, join, setTimeout, start, stop |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RPC.Server(Object instance, Configuration conf, int port)
instance
- the instance whose methods will be calledconf
- the configuration to useport
- the port to listen for connections onpublic RPC.Server(Object instance, Configuration conf, String bindAddress, int port)
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 onpublic RPC.Server(Object instance, Configuration conf, String bindAddress, int port, int numHandlers, boolean verbose)
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 loggedpublic RPC.Server(Object instance, Configuration conf, int port, int numHandlers, boolean verbose)
instance
- the instance whose methods will be calledconf
- the configuration to useport
- the port to listen for connections onnumHandlers
- the number of method handler threads to runverbose
- whether each call should be loggedMethod Detail |
---|
public Writable call(Writable param) throws IOException
Server
call
in class Server
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |