Class TestCloseRegionWhileRSCrash.DummyServerProcedure

java.lang.Object
org.apache.hadoop.hbase.procedure2.Procedure<org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv>
org.apache.hadoop.hbase.master.assignment.TestCloseRegionWhileRSCrash.DummyServerProcedure
All Implemented Interfaces:
Comparable<org.apache.hadoop.hbase.procedure2.Procedure<org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv>>, org.apache.hadoop.hbase.master.procedure.ServerProcedureInterface
Enclosing class:
TestCloseRegionWhileRSCrash

public static final class TestCloseRegionWhileRSCrash.DummyServerProcedure extends org.apache.hadoop.hbase.procedure2.Procedure<org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv> implements org.apache.hadoop.hbase.master.procedure.ServerProcedureInterface
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.apache.hadoop.hbase.procedure2.Procedure

    org.apache.hadoop.hbase.procedure2.Procedure.LockState

    Nested classes/interfaces inherited from interface org.apache.hadoop.hbase.master.procedure.ServerProcedureInterface

    org.apache.hadoop.hbase.master.procedure.ServerProcedureInterface.ServerOperationType
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private org.apache.hadoop.hbase.ServerName
     

    Fields inherited from class org.apache.hadoop.hbase.procedure2.Procedure

    NO_PROC_ID, NO_TIMEOUT
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    DummyServerProcedure(org.apache.hadoop.hbase.ServerName serverName)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected boolean
    abort(org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv env)
     
    protected org.apache.hadoop.hbase.procedure2.Procedure.LockState
    acquireLock(org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv env)
     
    protected void
    deserializeStateData(org.apache.hadoop.hbase.procedure2.ProcedureStateSerializer serializer)
     
    protected org.apache.hadoop.hbase.procedure2.Procedure<org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv>[]
    execute(org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv env)
     
    org.apache.hadoop.hbase.ServerName
     
    org.apache.hadoop.hbase.master.procedure.ServerProcedureInterface.ServerOperationType
     
    boolean
     
    protected boolean
    holdLock(org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv env)
     
    protected void
    releaseLock(org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv env)
     
    protected void
    rollback(org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv env)
     
    protected void
    serializeStateData(org.apache.hadoop.hbase.procedure2.ProcedureStateSerializer serializer)
     

    Methods inherited from class org.apache.hadoop.hbase.procedure2.Procedure

    addStackIndex, afterReplay, beforeReplay, bypass, compareTo, completionCleanup, doExecute, doRollback, elapsedTime, getChildrenLatch, getException, getLastUpdate, getNonceKey, getOwner, getParentProcId, getProcedureMetrics, getProcId, getProcIdHashCode, getProcName, getResult, getRootProcedureId, getRootProcId, getStackIndexes, getState, getSubmittedTime, getTimeout, getTimeoutTimestamp, hasChildren, hasException, hasLock, hasOwner, hasParent, hasTimeout, haveSameParent, incChildrenLatch, isBypass, isFailed, isFinished, isInitializing, isLockedWhenLoading, isRollbackSupported, isRunnable, isSuccess, isWaiting, isYieldAfterExecutionStep, removeStackIndex, setAbortFailure, setChildrenLatch, setExecuted, setFailure, setFailure, setLastUpdate, setNonceKey, setOwner, setOwner, setParentProcId, setProcId, setResult, setRootProcId, setStackIndexes, setState, setSubmittedTime, setTimeout, setTimeoutFailure, shouldWaitClientAck, skipPersistence, suspend, toString, toStringClass, toStringClassDetails, toStringDetails, toStringSimpleSB, toStringState, updateMetricsOnFinish, updateMetricsOnSubmit, updateTimestamp, waitInitialized, wasExecuted

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • serverName

      private org.apache.hadoop.hbase.ServerName serverName
  • Constructor Details

  • Method Details

    • getServerName

      public org.apache.hadoop.hbase.ServerName getServerName()
      Specified by:
      getServerName in interface org.apache.hadoop.hbase.master.procedure.ServerProcedureInterface
    • hasMetaTableRegion

      public boolean hasMetaTableRegion()
      Specified by:
      hasMetaTableRegion in interface org.apache.hadoop.hbase.master.procedure.ServerProcedureInterface
    • getServerOperationType

      public org.apache.hadoop.hbase.master.procedure.ServerProcedureInterface.ServerOperationType getServerOperationType()
      Specified by:
      getServerOperationType in interface org.apache.hadoop.hbase.master.procedure.ServerProcedureInterface
    • execute

      protected org.apache.hadoop.hbase.procedure2.Procedure<org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv>[] execute(org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv env) throws org.apache.hadoop.hbase.procedure2.ProcedureYieldException, org.apache.hadoop.hbase.procedure2.ProcedureSuspendedException, InterruptedException
      Specified by:
      execute in class org.apache.hadoop.hbase.procedure2.Procedure<org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv>
      Throws:
      org.apache.hadoop.hbase.procedure2.ProcedureYieldException
      org.apache.hadoop.hbase.procedure2.ProcedureSuspendedException
      InterruptedException
    • acquireLock

      protected org.apache.hadoop.hbase.procedure2.Procedure.LockState acquireLock(org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv env)
      Overrides:
      acquireLock in class org.apache.hadoop.hbase.procedure2.Procedure<org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv>
    • releaseLock

      protected void releaseLock(org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv env)
      Overrides:
      releaseLock in class org.apache.hadoop.hbase.procedure2.Procedure<org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv>
    • holdLock

      protected boolean holdLock(org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv env)
      Overrides:
      holdLock in class org.apache.hadoop.hbase.procedure2.Procedure<org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv>
    • rollback

      protected void rollback(org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv env) throws IOException, InterruptedException
      Specified by:
      rollback in class org.apache.hadoop.hbase.procedure2.Procedure<org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv>
      Throws:
      IOException
      InterruptedException
    • abort

      protected boolean abort(org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv env)
      Specified by:
      abort in class org.apache.hadoop.hbase.procedure2.Procedure<org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv>
    • serializeStateData

      protected void serializeStateData(org.apache.hadoop.hbase.procedure2.ProcedureStateSerializer serializer) throws IOException
      Specified by:
      serializeStateData in class org.apache.hadoop.hbase.procedure2.Procedure<org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv>
      Throws:
      IOException
    • deserializeStateData

      protected void deserializeStateData(org.apache.hadoop.hbase.procedure2.ProcedureStateSerializer serializer) throws IOException
      Specified by:
      deserializeStateData in class org.apache.hadoop.hbase.procedure2.Procedure<org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv>
      Throws:
      IOException