Class ClientServiceCallable<T>

java.lang.Object
org.apache.hadoop.hbase.client.RegionServerCallable<T,org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.ClientService.BlockingInterface>
org.apache.hadoop.hbase.client.ClientServiceCallable<T>
All Implemented Interfaces:
RetryingCallable<T>
Direct Known Subclasses:
CancellableRegionServerCallable, NoncedRegionServerCallable, ScannerCallable

@Private public abstract class ClientServiceCallable<T> extends RegionServerCallable<T,org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.ClientService.BlockingInterface>
A RegionServerCallable set to use the Client protocol. Also includes some utility methods so can hide protobuf references here rather than have them sprinkled about the code base.
  • Constructor Details

  • Method Details

    • setStubByServiceName

      protected void setStubByServiceName(ServerName serviceName) throws IOException
      Description copied from class: RegionServerCallable
      Set the RCP client stub
      Specified by:
      setStubByServiceName in class RegionServerCallable<T,org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.ClientService.BlockingInterface>
      Parameters:
      serviceName - to get the rpc stub for
      Throws:
      IOException - When client could not be created
    • doGet

      protected org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.GetResponse doGet(org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.GetRequest request) throws org.apache.hbase.thirdparty.com.google.protobuf.ServiceException
      Throws:
      org.apache.hbase.thirdparty.com.google.protobuf.ServiceException
    • doMutate

      protected org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.MutateResponse doMutate(org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.MutateRequest request) throws org.apache.hbase.thirdparty.com.google.protobuf.ServiceException
      Throws:
      org.apache.hbase.thirdparty.com.google.protobuf.ServiceException