public class AsyncRpcChannel
extends java.lang.Object
implements com.google.protobuf.RpcChannel
| Modifier and Type | Field and Description |
|---|---|
static org.apache.commons.logging.Log |
LOG |
boolean |
shouldCloseConnection |
protected static java.util.Map<org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenIdentifier.Kind,org.apache.hadoop.security.token.TokenSelector<? extends org.apache.hadoop.security.token.TokenIdentifier>> |
tokenHandlers |
| Constructor and Description |
|---|
AsyncRpcChannel(io.netty.bootstrap.Bootstrap bootstrap,
AsyncRpcClient client,
org.apache.hadoop.hbase.ipc.RpcClient.ConnectionId remoteId)
Constructor for netty RPC channel
|
| Modifier and Type | Method and Description |
|---|---|
void |
callMethod(com.google.protobuf.Descriptors.MethodDescriptor method,
com.google.protobuf.RpcController controller,
com.google.protobuf.Message request,
com.google.protobuf.Message responsePrototype,
com.google.protobuf.RpcCallback<com.google.protobuf.Message> done) |
void |
cleanupTimedOutCalls(int rpcTimeout)
Clean up timed out calls
|
void |
close(java.lang.Throwable e)
Close connection
|
boolean |
isAlive()
Check if the connection is alive
|
public static final org.apache.commons.logging.Log LOG
protected static final java.util.Map<org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenIdentifier.Kind,org.apache.hadoop.security.token.TokenSelector<? extends org.apache.hadoop.security.token.TokenIdentifier>> tokenHandlers
public boolean shouldCloseConnection
public AsyncRpcChannel(io.netty.bootstrap.Bootstrap bootstrap,
AsyncRpcClient client,
org.apache.hadoop.hbase.ipc.RpcClient.ConnectionId remoteId)
bootstrap - to construct channel onclient - to connect withremoteId - connection idpublic void callMethod(com.google.protobuf.Descriptors.MethodDescriptor method,
com.google.protobuf.RpcController controller,
com.google.protobuf.Message request,
com.google.protobuf.Message responsePrototype,
com.google.protobuf.RpcCallback<com.google.protobuf.Message> done)
callMethod in interface com.google.protobuf.RpcChannelpublic void close(java.lang.Throwable e)
e - exception on closepublic void cleanupTimedOutCalls(int rpcTimeout)
rpcTimeout - for cleanuppublic boolean isAlive()