Class TestServerRemoteProcedure.NoopServerRemoteProcedure
java.lang.Object
org.apache.hadoop.hbase.procedure2.Procedure<org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv>
org.apache.hadoop.hbase.master.procedure.ServerRemoteProcedure
org.apache.hadoop.hbase.master.procedure.TestServerRemoteProcedure.NoopServerRemoteProcedure
- All Implemented Interfaces:
Comparable<org.apache.hadoop.hbase.procedure2.Procedure<org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv>>
,org.apache.hadoop.hbase.master.procedure.ServerProcedureInterface
,org.apache.hadoop.hbase.procedure2.RemoteProcedureDispatcher.RemoteProcedure<org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv,
org.apache.hadoop.hbase.ServerName>
- Enclosing class:
- TestServerRemoteProcedure
private static class TestServerRemoteProcedure.NoopServerRemoteProcedure
extends org.apache.hadoop.hbase.master.procedure.ServerRemoteProcedure
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 inherited from class org.apache.hadoop.hbase.master.procedure.ServerRemoteProcedure
dispatched, event, LOG, succ, targetServer
Fields inherited from class org.apache.hadoop.hbase.procedure2.Procedure
NO_PROC_ID, NO_TIMEOUT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
abort
(org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv env) void
protected void
deserializeStateData
(org.apache.hadoop.hbase.procedure2.ProcedureStateSerializer serializer) org.apache.hadoop.hbase.ServerName
org.apache.hadoop.hbase.master.procedure.ServerProcedureInterface.ServerOperationType
boolean
Optional<org.apache.hadoop.hbase.procedure2.RemoteProcedureDispatcher.RemoteOperation>
remoteCallBuild
(org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv env, org.apache.hadoop.hbase.ServerName serverName) void
remoteOperationCompleted
(org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv env) void
remoteOperationFailed
(org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv env, org.apache.hadoop.hbase.procedure2.RemoteProcedureException error) 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.master.procedure.ServerRemoteProcedure
completionCleanup, execute, remoteCallFailed, remoteOperationDone
Methods inherited from class org.apache.hadoop.hbase.procedure2.Procedure
acquireLock, addStackIndex, afterReplay, beforeReplay, bypass, compareTo, 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, holdLock, incChildrenLatch, isBypass, isFailed, isFinished, isInitializing, isLockedWhenLoading, isRollbackSupported, isRunnable, isSuccess, isWaiting, isYieldAfterExecutionStep, releaseLock, 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
Methods inherited from interface org.apache.hadoop.hbase.procedure2.RemoteProcedureDispatcher.RemoteProcedure
storeInDispatchedQueue
-
Constructor Details
-
NoopServerRemoteProcedure
-
-
Method Details
-
rollback
protected void rollback(org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv env) throws IOException, InterruptedException - Specified by:
rollback
in classorg.apache.hadoop.hbase.procedure2.Procedure<org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv>
- Throws:
IOException
InterruptedException
-
abort
- Specified by:
abort
in classorg.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 classorg.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 classorg.apache.hadoop.hbase.procedure2.Procedure<org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv>
- Throws:
IOException
-
remoteCallBuild
public Optional<org.apache.hadoop.hbase.procedure2.RemoteProcedureDispatcher.RemoteOperation> remoteCallBuild(org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv env, org.apache.hadoop.hbase.ServerName serverName) - Specified by:
remoteCallBuild
in interfaceorg.apache.hadoop.hbase.procedure2.RemoteProcedureDispatcher.RemoteProcedure<org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv,
org.apache.hadoop.hbase.ServerName>
-
remoteOperationCompleted
public void remoteOperationCompleted(org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv env) - Specified by:
remoteOperationCompleted
in interfaceorg.apache.hadoop.hbase.procedure2.RemoteProcedureDispatcher.RemoteProcedure<org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv,
org.apache.hadoop.hbase.ServerName> - Overrides:
remoteOperationCompleted
in classorg.apache.hadoop.hbase.master.procedure.ServerRemoteProcedure
-
remoteOperationFailed
public void remoteOperationFailed(org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv env, org.apache.hadoop.hbase.procedure2.RemoteProcedureException error) - Specified by:
remoteOperationFailed
in interfaceorg.apache.hadoop.hbase.procedure2.RemoteProcedureDispatcher.RemoteProcedure<org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv,
org.apache.hadoop.hbase.ServerName> - Overrides:
remoteOperationFailed
in classorg.apache.hadoop.hbase.master.procedure.ServerRemoteProcedure
-
complete
public void complete(org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv env, Throwable error) - Specified by:
complete
in classorg.apache.hadoop.hbase.master.procedure.ServerRemoteProcedure
-
getServerName
- Specified by:
getServerName
in interfaceorg.apache.hadoop.hbase.master.procedure.ServerProcedureInterface
-
hasMetaTableRegion
- Specified by:
hasMetaTableRegion
in interfaceorg.apache.hadoop.hbase.master.procedure.ServerProcedureInterface
-
getServerOperationType
public org.apache.hadoop.hbase.master.procedure.ServerProcedureInterface.ServerOperationType getServerOperationType()- Specified by:
getServerOperationType
in interfaceorg.apache.hadoop.hbase.master.procedure.ServerProcedureInterface
-