org.apache.hadoop.hbase.ipc
Class CoprocessorRpcChannel

java.lang.Object
  extended by org.apache.hadoop.hbase.ipc.CoprocessorRpcChannel
All Implemented Interfaces:
com.google.protobuf.BlockingRpcChannel, com.google.protobuf.RpcChannel
Direct Known Subclasses:
MasterCoprocessorRpcChannel, RegionCoprocessorRpcChannel

@InterfaceAudience.Private
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 Services


Constructor Summary
CoprocessorRpcChannel()
           
 
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
 

Constructor Detail

CoprocessorRpcChannel

public CoprocessorRpcChannel()
Method Detail

callMethod

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

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 © 2013 The Apache Software Foundation. All Rights Reserved.