org.apache.hadoop.hbase.ipc
Class HBaseClientRPC
java.lang.Object
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
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
protected static final org.apache.commons.logging.Log LOG
HBaseClientRPC
public HBaseClientRPC()
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 interfaceaddr
- address of remote serviceconf
- configurationmaxAttempts
- max attemptsrpcTimeout
- timeout for each RPCtimeout
- 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.