public static class ProcedureTestingUtility.TestProcedure extends Procedure<Void>
| Constructor and Description |
|---|
TestProcedure() |
TestProcedure(long procId) |
TestProcedure(long procId,
long parentId) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
abort(Void env)
The abort() call is asynchronous and each procedure must decide how to deal
with that, if they want to be abortable.
|
void |
addStackId(int index) |
protected void |
deserializeStateData(InputStream stream)
Called on store load to allow the user to decode the previously serialized
state.
|
protected Procedure[] |
execute(Void env)
The main code of the procedure.
|
protected void |
rollback(Void env)
The code to undo what done by the execute() code.
|
protected void |
serializeStateData(OutputStream stream)
The user-level code of the procedure may have some state to
persist (e.g.
|
acquireLock, addStackIndex, beforeReplay, childrenCountDown, compareTo, completionCleanup, convert, convert, createProcedureInfo, doExecute, doRollback, elapsedTime, 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, setAbortFailure, setChildrenLatch, setFailure, setFailure, setNonceKey, setOwner, setParentProcId, setProcId, setResult, setStackIndexes, setStartTime, setState, setTimeout, setTimeoutFailure, toString, toStringClass, toStringClassDetails, toStringDetails, toStringSimpleSB, updateTimestamp, validateClass, wasExecutedpublic TestProcedure()
public TestProcedure(long procId)
public TestProcedure(long procId,
long parentId)
public void addStackId(int index)
protected Procedure[] execute(Void env)
Procedureprotected void rollback(Void env)
Procedureprotected boolean abort(Void env)
Procedureprotected void serializeStateData(OutputStream stream) throws IOException
ProcedureserializeStateData in class Procedure<Void>stream - the stream that will contain the user serialized dataIOException - failure to stream dataprotected void deserializeStateData(InputStream stream) throws IOException
ProceduredeserializeStateData in class Procedure<Void>stream - the stream that contains the user serialized dataIOException