org.apache.hadoop.hbase.ipc
Interface RpcEngine

All Superinterfaces:
org.apache.hadoop.conf.Configurable
All Known Implementing Classes:
SecureRpcEngine

@InterfaceAudience.Private
public interface RpcEngine
extends org.apache.hadoop.conf.Configurable

An RPC implementation.


Method Summary
 Object[] call(Method method, Object[][] params, InetSocketAddress[] addrs, Class<? extends VersionedProtocol> protocol, User ticket, org.apache.hadoop.conf.Configuration conf)
          Expert: Make multiple, parallel calls to a set of servers.
 void close()
          Shutdown this instance
<T extends VersionedProtocol>
T
getProxy(Class<T> protocol, long clientVersion, InetSocketAddress addr, org.apache.hadoop.conf.Configuration conf, int rpcTimeout)
          Construct a client-side proxy object.
 RpcServer getServer(Class<? extends VersionedProtocol> protocol, Object instance, Class<?>[] ifaces, String bindAddress, int port, int numHandlers, int metaHandlerCount, boolean verbose, org.apache.hadoop.conf.Configuration conf, int highPriorityLevel)
          Construct a server for a protocol implementation instance.
 
Methods inherited from interface org.apache.hadoop.conf.Configurable
getConf, setConf
 

Method Detail

getProxy

<T extends VersionedProtocol> T getProxy(Class<T> protocol,
                                         long clientVersion,
                                         InetSocketAddress addr,
                                         org.apache.hadoop.conf.Configuration conf,
                                         int rpcTimeout)
                                     throws IOException
Construct a client-side proxy object.

Throws:
IOException

close

void close()
Shutdown this instance


call

Object[] call(Method method,
              Object[][] params,
              InetSocketAddress[] addrs,
              Class<? extends VersionedProtocol> protocol,
              User ticket,
              org.apache.hadoop.conf.Configuration conf)
              throws IOException,
                     InterruptedException
Expert: Make multiple, parallel calls to a set of servers.

Throws:
IOException
InterruptedException

getServer

RpcServer getServer(Class<? extends VersionedProtocol> protocol,
                    Object instance,
                    Class<?>[] ifaces,
                    String bindAddress,
                    int port,
                    int numHandlers,
                    int metaHandlerCount,
                    boolean verbose,
                    org.apache.hadoop.conf.Configuration conf,
                    int highPriorityLevel)
                    throws IOException
Construct a server for a protocol implementation instance.

Throws:
IOException


Copyright © 2014 The Apache Software Foundation. All Rights Reserved.