org.apache.hadoop.hbase.ipc
Class CoprocessorRpcChannel
java.lang.Object
org.apache.hadoop.hbase.ipc.CoprocessorRpcChannel
- All Implemented Interfaces:
- com.google.protobuf.BlockingRpcChannel, com.google.protobuf.RpcChannel
- Direct Known Subclasses:
- MasterCoprocessorRpcChannel, RegionCoprocessorRpcChannel, RegionServerCoprocessorRpcChannel
@InterfaceAudience.Public
@InterfaceStability.Evolving
public abstract class CoprocessorRpcChannel
- extends Object
- implements com.google.protobuf.RpcChannel, com.google.protobuf.BlockingRpcChannel
Base class which provides clients with an RPC connection to
call coprocessor endpoint Service
s. Note that clients should not use this class
directly, except through
HTableInterface.coprocessorService(byte[])
.
Method Summary |
com.google.protobuf.Message |
callBlockingMethod(com.google.protobuf.Descriptors.MethodDescriptor method,
com.google.protobuf.RpcController controller,
com.google.protobuf.Message request,
com.google.protobuf.Message responsePrototype)
|
protected abstract com.google.protobuf.Message |
callExecService(com.google.protobuf.Descriptors.MethodDescriptor method,
com.google.protobuf.Message request,
com.google.protobuf.Message responsePrototype)
|
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> callback)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CoprocessorRpcChannel
public CoprocessorRpcChannel()
callMethod
@InterfaceAudience.Private
public 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> callback)
- Specified by:
callMethod
in interface com.google.protobuf.RpcChannel
callBlockingMethod
@InterfaceAudience.Private
public com.google.protobuf.Message callBlockingMethod(com.google.protobuf.Descriptors.MethodDescriptor method,
com.google.protobuf.RpcController controller,
com.google.protobuf.Message request,
com.google.protobuf.Message responsePrototype)
throws com.google.protobuf.ServiceException
- Specified by:
callBlockingMethod
in interface com.google.protobuf.BlockingRpcChannel
- Throws:
com.google.protobuf.ServiceException
callExecService
protected abstract com.google.protobuf.Message callExecService(com.google.protobuf.Descriptors.MethodDescriptor method,
com.google.protobuf.Message request,
com.google.protobuf.Message responsePrototype)
throws IOException
- Throws:
IOException
Copyright © 2007-2015 The Apache Software Foundation. All Rights Reserved.