Class FlushRegionCallable

java.lang.Object
org.apache.hadoop.hbase.client.RegionAdminServiceCallable<org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.FlushRegionResponse>
org.apache.hadoop.hbase.client.FlushRegionCallable
All Implemented Interfaces:
RetryingCallable<org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.FlushRegionResponse>

@Private public class FlushRegionCallable extends RegionAdminServiceCallable<org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.FlushRegionResponse>
A Callable for flushRegion() RPC.
  • Field Details

    • LOG

      private static final org.slf4j.Logger LOG
    • regionName

      private final byte[] regionName
    • writeFlushWalMarker

      private final boolean writeFlushWalMarker
    • reload

      private boolean reload
  • Constructor Details

  • Method Details

    • prepare

      public void prepare(boolean reload) throws IOException
      Description copied from interface: RetryingCallable
      Prepare by setting up any connections to servers, etc., ahead of call invocation. TODO: We call prepare before EVERY call. Seems wrong. FIX!!!!
      Specified by:
      prepare in interface RetryingCallable<org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.FlushRegionResponse>
      Overrides:
      prepare in class RegionAdminServiceCallable<org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.FlushRegionResponse>
      Parameters:
      reload - Set this to true if need to requery locations
      Throws:
      IOException - e
    • call

      protected org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.FlushRegionResponse call(HBaseRpcController controller) throws Exception
      Description copied from class: RegionAdminServiceCallable
      Run RPC call.
      Specified by:
      call in class RegionAdminServiceCallable<org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.FlushRegionResponse>
      Parameters:
      controller - PayloadCarryingRpcController is a mouthful but it at a minimum is a facade on protobuf so we don't have to put protobuf everywhere; we can keep it behind this class.
      Throws:
      Exception