@InterfaceAudience.Private @InterfaceStability.Evolving public abstract class SequentialProcedure<TEnvironment> extends Procedure<TEnvironment>
| Constructor and Description | 
|---|
SequentialProcedure()  | 
| Modifier and Type | Method and Description | 
|---|---|
protected void | 
deserializeStateData(InputStream stream)
Called on store load to allow the user to decode the previously serialized
 state. 
 | 
protected Procedure[] | 
doExecute(TEnvironment env)
Internal method called by the ProcedureExecutor that starts the
 user-level code execute(). 
 | 
protected void | 
doRollback(TEnvironment env)
Internal method called by the ProcedureExecutor that starts the
 user-level code rollback(). 
 | 
protected void | 
serializeStateData(OutputStream stream)
The user-level code of the procedure may have some state to
 persist (e.g. 
 | 
abort, acquireLock, addStackIndex, beforeReplay, childrenCountDown, compareTo, completionCleanup, convert, convert, createProcedureInfo, elapsedTime, execute, getException, getLastUpdate, getNonceKey, getOwner, getParentProcId, getProcId, getResult, getRootProcedureId, getStackIndexes, getStartTime, getState, getTimeout, getTimeRemaining, hasException, hasOwner, hasParent, hasTimeout, incChildrenLatch, isFailed, isFinished, isSuccess, isWaiting, newInstance, releaseLock, removeStackIndex, rollback, setAbortFailure, setChildrenLatch, setFailure, setFailure, setNonceKey, setOwner, setParentProcId, setProcId, setResult, setStackIndexes, setStartTime, setState, setTimeout, setTimeoutFailure, toString, toStringClass, toStringClassDetails, toStringDetails, toStringSimpleSB, updateTimestamp, validateClass, wasExecutedprotected Procedure[] doExecute(TEnvironment env) throws ProcedureYieldException, InterruptedException
ProceduredoExecute in class Procedure<TEnvironment>env - the environment passed to the ProcedureExecutorProcedureYieldException - the procedure will be added back to the queue and retried laterInterruptedExceptionprotected void doRollback(TEnvironment env) throws IOException
ProceduredoRollback in class Procedure<TEnvironment>env - the environment passed to the ProcedureExecutorIOExceptionprotected void serializeStateData(OutputStream stream) throws IOException
ProcedureserializeStateData in class Procedure<TEnvironment>stream - the stream that will contain the user serialized dataIOException - failure to stream dataprotected void deserializeStateData(InputStream stream) throws IOException
ProceduredeserializeStateData in class Procedure<TEnvironment>stream - the stream that contains the user serialized dataIOException