public static final class TestSplitWALManager.FakeServerProcedure extends org.apache.hadoop.hbase.procedure2.StateMachineProcedure<org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv,org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProcedureProtos.SplitWALState> implements org.apache.hadoop.hbase.master.procedure.ServerProcedureInterface
org.apache.hadoop.hbase.procedure2.StateMachineProcedure.Flow
Modifier and Type | Field and Description |
---|---|
private CountDownLatch |
barrier |
private org.apache.hadoop.hbase.ServerName |
serverName |
private boolean |
triedToAcquire |
private org.apache.hadoop.hbase.ServerName |
worker |
Constructor and Description |
---|
FakeServerProcedure() |
FakeServerProcedure(org.apache.hadoop.hbase.ServerName serverName) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
abort(org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv env) |
void |
countDown() |
protected void |
deserializeStateData(org.apache.hadoop.hbase.procedure2.ProcedureStateSerializer serializer) |
protected org.apache.hadoop.hbase.procedure2.StateMachineProcedure.Flow |
executeFromState(org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv env,
org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProcedureProtos.SplitWALState state) |
protected org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProcedureProtos.SplitWALState |
getInitialState() |
org.apache.hadoop.hbase.ServerName |
getServerName() |
org.apache.hadoop.hbase.master.procedure.ServerProcedureInterface.ServerOperationType |
getServerOperationType() |
protected org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProcedureProtos.SplitWALState |
getState(int stateId) |
protected int |
getStateId(org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProcedureProtos.SplitWALState state) |
boolean |
hasMetaTableRegion() |
protected boolean |
holdLock(org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv env) |
boolean |
isTriedToAcquire() |
boolean |
isWorkerAcquired() |
protected void |
rollback(org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv env) |
protected void |
rollbackState(org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv env,
org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProcedureProtos.SplitWALState state) |
protected void |
serializeStateData(org.apache.hadoop.hbase.procedure2.ProcedureStateSerializer serializer) |
addChildProcedure, execute, failIfAborted, getCurrentState, getCurrentStateId, getCycles, isEofState, isRollbackSupported, isYieldAfterExecutionStep, isYieldBeforeExecuteFromState, setNextState, toStringState
acquireLock, 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, isRunnable, isSuccess, isWaiting, releaseLock, removeStackIndex, setAbortFailure, setChildrenLatch, setFailure, setFailure, setLastUpdate, setNonceKey, setOwner, setOwner, setParentProcId, setProcId, setResult, setRootProcId, setStackIndexes, setState, setSubmittedTime, setTimeout, setTimeoutFailure, shouldWaitClientAck, skipPersistence, toString, toStringClass, toStringClassDetails, toStringDetails, toStringSimpleSB, updateMetricsOnFinish, updateMetricsOnSubmit, updateTimestamp, waitInitialized, wasExecuted
private org.apache.hadoop.hbase.ServerName serverName
private org.apache.hadoop.hbase.ServerName worker
private CountDownLatch barrier
private boolean triedToAcquire
public FakeServerProcedure()
public FakeServerProcedure(org.apache.hadoop.hbase.ServerName serverName)
public org.apache.hadoop.hbase.ServerName getServerName()
getServerName
in interface org.apache.hadoop.hbase.master.procedure.ServerProcedureInterface
public boolean hasMetaTableRegion()
hasMetaTableRegion
in interface org.apache.hadoop.hbase.master.procedure.ServerProcedureInterface
public org.apache.hadoop.hbase.master.procedure.ServerProcedureInterface.ServerOperationType getServerOperationType()
getServerOperationType
in interface org.apache.hadoop.hbase.master.procedure.ServerProcedureInterface
protected org.apache.hadoop.hbase.procedure2.StateMachineProcedure.Flow executeFromState(org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv env, org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProcedureProtos.SplitWALState state) throws org.apache.hadoop.hbase.procedure2.ProcedureSuspendedException, org.apache.hadoop.hbase.procedure2.ProcedureYieldException, InterruptedException
executeFromState
in class org.apache.hadoop.hbase.procedure2.StateMachineProcedure<org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv,org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProcedureProtos.SplitWALState>
org.apache.hadoop.hbase.procedure2.ProcedureSuspendedException
org.apache.hadoop.hbase.procedure2.ProcedureYieldException
InterruptedException
public boolean isWorkerAcquired()
public boolean isTriedToAcquire()
public void countDown()
protected void rollbackState(org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv env, org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProcedureProtos.SplitWALState state) throws IOException, InterruptedException
rollbackState
in class org.apache.hadoop.hbase.procedure2.StateMachineProcedure<org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv,org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProcedureProtos.SplitWALState>
IOException
InterruptedException
protected org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProcedureProtos.SplitWALState getState(int stateId)
getState
in class org.apache.hadoop.hbase.procedure2.StateMachineProcedure<org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv,org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProcedureProtos.SplitWALState>
protected int getStateId(org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProcedureProtos.SplitWALState state)
getStateId
in class org.apache.hadoop.hbase.procedure2.StateMachineProcedure<org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv,org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProcedureProtos.SplitWALState>
protected org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProcedureProtos.SplitWALState getInitialState()
getInitialState
in class org.apache.hadoop.hbase.procedure2.StateMachineProcedure<org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv,org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProcedureProtos.SplitWALState>
protected boolean holdLock(org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv env)
holdLock
in class org.apache.hadoop.hbase.procedure2.Procedure<org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv>
protected void rollback(org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv env) throws IOException, InterruptedException
rollback
in class org.apache.hadoop.hbase.procedure2.StateMachineProcedure<org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv,org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProcedureProtos.SplitWALState>
IOException
InterruptedException
protected boolean abort(org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv env)
abort
in class org.apache.hadoop.hbase.procedure2.StateMachineProcedure<org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv,org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProcedureProtos.SplitWALState>
protected void serializeStateData(org.apache.hadoop.hbase.procedure2.ProcedureStateSerializer serializer) throws IOException
serializeStateData
in class org.apache.hadoop.hbase.procedure2.StateMachineProcedure<org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv,org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProcedureProtos.SplitWALState>
IOException
protected void deserializeStateData(org.apache.hadoop.hbase.procedure2.ProcedureStateSerializer serializer) throws IOException
deserializeStateData
in class org.apache.hadoop.hbase.procedure2.StateMachineProcedure<org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv,org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProcedureProtos.SplitWALState>
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.