@InterfaceAudience.Private @InterfaceStability.Evolving class RootProcedureState extends Object
Modifier and Type | Class and Description |
---|---|
private static class |
RootProcedureState.State |
Modifier and Type | Field and Description |
---|---|
private static org.apache.commons.logging.Log |
LOG |
private int |
running |
private RootProcedureState.State |
state |
private ArrayList<Procedure> |
subprocedures |
Constructor and Description |
---|
RootProcedureState() |
Modifier and Type | Method and Description |
---|---|
protected void |
abort() |
protected boolean |
acquire(Procedure proc)
Called by the ProcedureExecutor to mark the procedure step as running.
|
protected void |
addRollbackStep(Procedure proc)
Called by the ProcedureExecutor after the procedure step is completed,
to add the step to the rollback list (or procedure stack)
|
protected RemoteProcedureException |
getException() |
protected List<Procedure> |
getSubprocedures() |
boolean |
isFailed() |
boolean |
isRollingback() |
protected boolean |
isValid()
Called on store load by the ProcedureExecutor to validate the procedure stack.
|
protected void |
loadStack(Procedure proc)
Called on store load by the ProcedureExecutor to load part of the stack.
|
protected void |
release(Procedure proc)
Called by the ProcedureExecutor to mark the procedure step as finished.
|
protected boolean |
setRollback()
Called by the ProcedureExecutor to mark rollback execution
|
protected void |
unsetRollback()
Called by the ProcedureExecutor to mark rollback execution
|
private static final org.apache.commons.logging.Log LOG
private RootProcedureState.State state
private int running
public boolean isFailed()
public boolean isRollingback()
protected boolean setRollback()
protected void unsetRollback()
protected RemoteProcedureException getException()
protected boolean acquire(Procedure proc)
protected void release(Procedure proc)
protected void abort()
protected void addRollbackStep(Procedure proc)
protected void loadStack(Procedure proc)
protected boolean isValid()
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.