Save This Page
Home » hadoop-0.14.4 » org.apache » hadoop » ipc » [javadoc | source]
org.apache.hadoop.ipc
public class: RPC [javadoc | source]
java.lang.Object
   org.apache.hadoop.ipc.RPC
A simple RPC mechanism. A protocol is a Java interface. All parameters and return types must be one of: All methods in the protocol should throw only IOException. No field data of the protocol instance is transmitted.
Nested Class Summary:
public static class  RPC.VersionMismatch  A version mismatch for the RPC protocol. 
public static class  RPC.Server  An RPC Server. 
Method from org.apache.hadoop.ipc.RPC Summary:
call,   getProxy,   getServer,   getServer,   stopClient,   waitForProxy
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.hadoop.ipc.RPC Detail:
 public static Object[] call(Method method,
    Object[][] params,
    InetSocketAddress[] addrs,
    Configuration conf) throws IOException 
    Expert: Make multiple, parallel calls to a set of servers.
 public static VersionedProtocol getProxy(Class protocol,
    long clientVersion,
    InetSocketAddress addr,
    Configuration conf) throws IOException 
    Construct a client-side proxy object that implements the named protocol, talking to a server at the named address.
 public static RPC.Server getServer(Object instance,
    String bindAddress,
    int port,
    Configuration conf) throws IOException 
    Construct a server for a protocol implementation instance listening on a port and address.
 public static RPC.Server getServer(Object instance,
    String bindAddress,
    int port,
    int numHandlers,
    boolean verbose,
    Configuration conf) throws IOException 
    Construct a server for a protocol implementation instance listening on a port and address.
 public static synchronized  void stopClient() 
    Stop all RPC client connections
 public static VersionedProtocol waitForProxy(Class protocol,
    long clientVersion,
    InetSocketAddress addr,
    Configuration conf) throws IOException