org.apache.hadoop.hbase.ipc
Class HBaseClientRPC

java.lang.Object
  extended by org.apache.hadoop.hbase.ipc.HBaseClientRPC

@InterfaceAudience.Private
public class HBaseClientRPC
extends Object

An RPC implementation. This class provides the client side.


Field Summary
protected static org.apache.commons.logging.Log LOG
           
 
Constructor Summary
HBaseClientRPC()
           
 
Method Summary
static int getRpcTimeout()
           
static void resetRpcTimeout()
           
static void setRpcTimeout(int t)
           
static
<T extends IpcProtocol>
T
waitForProxy(RpcClientEngine engine, Class<T> protocol, InetSocketAddress addr, org.apache.hadoop.conf.Configuration conf, int maxAttempts, int rpcTimeout, long timeout)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

protected static final org.apache.commons.logging.Log LOG
Constructor Detail

HBaseClientRPC

public HBaseClientRPC()
Method Detail

waitForProxy

public static <T extends IpcProtocol> T waitForProxy(RpcClientEngine engine,
                                                     Class<T> protocol,
                                                     InetSocketAddress addr,
                                                     org.apache.hadoop.conf.Configuration conf,
                                                     int maxAttempts,
                                                     int rpcTimeout,
                                                     long timeout)
                                          throws IOException
Parameters:
protocol - protocol interface
addr - address of remote service
conf - configuration
maxAttempts - max attempts
rpcTimeout - timeout for each RPC
timeout - timeout in milliseconds
Returns:
proxy
Throws:
IOException - e

setRpcTimeout

public static void setRpcTimeout(int t)

getRpcTimeout

public static int getRpcTimeout()

resetRpcTimeout

public static void resetRpcTimeout()


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