public class ActivationRecord extends AbstractRecord
modifyingActions, objectModel, objectUid, usingActions| Constructor and Description |
|---|
ActivationRecord() |
ActivationRecord(int st,
StateManager sm,
BasicAction action) |
| Modifier and Type | Method and Description |
|---|---|
void |
alter(AbstractRecord a)
Alter the current record with the one presented.
|
void |
merge(AbstractRecord a)
Merge the current record with the one presented.
|
int |
nestedAbort()
nestedAbort causes the reset_state function of the object to be invoked
passing it the saved ObjectStatus.
|
int |
nestedCommit()
nestedCommit does nothing since the passing of the state up to the parent
action is handled by the record list merging system.
|
int |
nestedPrepare()
A prepare for a nested transaction has occurred.
|
void |
print(PrintWriter strm)
Write information about this specific instance to the specified stream.
|
boolean |
restore_state(InputObjectState os,
int v)
Saving of ActivationRecords is only undertaken during the Prepare phase
of the top level 2PC.
|
boolean |
save_state(OutputObjectState os,
ObjectType v) |
void |
setValue(Object v) |
boolean |
shouldAdd(AbstractRecord a)
Should we add the record presented to the intentions list?
|
boolean |
shouldAlter(AbstractRecord a)
Should we alter the current record with the one presented?
|
boolean |
shouldMerge(AbstractRecord a)
Should we merge the current record with the one presented?
|
boolean |
shouldReplace(AbstractRecord a)
Should we replace the record presented with the current record?
|
int |
topLevelAbort()
topLevelAbort for Activation records is exactly like a nested abort.
|
int |
topLevelCommit()
A commit of a top-level transaction has occurred.
|
int |
topLevelPrepare()
A prepare for a top-level transaction has occurred.
|
String |
type()
Re-implementation of abstract methods inherited from base class.
|
int |
typeIs() |
Object |
value()
If this abstract record caused a heuristic then it should return an
object which implements
HeuristicInformation |
create, doSave, equals, forgetHeuristic, getNext, getPrevious, getTypeOfObject, greaterThan, lessThan, nestedCleanup, nestedOnePhaseCommit, order, propagateOnAbort, propagateOnCommit, replace, save_state, setNext, setPrevious, topLevelCleanup, topLevelOnePhaseCommitactivate, activate, cleanup, createLists, deactivate, deactivate, deactivate, destroy, disable, forgetAction, get_uid, getMutex, getObjectModel, getStore, getStoreRoot, loadObjectState, lockMutex, modified, objectType, packHeader, persist, rememberAction, setStatus, setupStore, setupStore, setupStore, status, terminate, tryLockMutex, unlockMutex, unpackHeaderpublic ActivationRecord(int st,
StateManager sm,
BasicAction action)
public ActivationRecord()
public int typeIs()
typeIs in class AbstractRecordRecordType value.public Object value()
AbstractRecordHeuristicInformationvalue in class AbstractRecordObject to be used to order.public void setValue(Object v)
setValue in class AbstractRecordpublic int nestedAbort()
nestedAbort in class AbstractRecordTwoPhaseOutcome to indicate success/failure.TwoPhaseOutcomepublic int nestedCommit()
nestedCommit in class AbstractRecordTwoPhaseOutcome to indicate success/failure.TwoPhaseOutcomepublic int nestedPrepare()
AbstractRecordnestedPrepare in class AbstractRecordTwoPhaseOutcome to indicate success/failure.TwoPhaseOutcomepublic int topLevelAbort()
topLevelAbort in class AbstractRecordTwoPhaseOutcome to indicate success/failure.TwoPhaseOutcomepublic int topLevelCommit()
AbstractRecordtopLevelCommit in class AbstractRecordTwoPhaseOutcome to indicate success/failure.TwoPhaseOutcomepublic int topLevelPrepare()
AbstractRecordtopLevelPrepare in class AbstractRecordTwoPhaseOutcome to indicate success/failure.TwoPhaseOutcomepublic boolean restore_state(InputObjectState os, int v)
restore_state in class AbstractRecordtrue if successful, false
otherwise.public boolean save_state(OutputObjectState os, ObjectType v)
public void print(PrintWriter strm)
AbstractRecordprint in class AbstractRecordstrm - the stream on which to output.public String type()
AbstractRecordtype in class AbstractRecordpublic void merge(AbstractRecord a)
AbstractRecordmerge in class AbstractRecorda - the record with which to merge.public void alter(AbstractRecord a)
AbstractRecordalter in class AbstractRecorda - the record with which to alter.public boolean shouldAdd(AbstractRecord a)
AbstractRecordshouldAdd in class AbstractRecorda - The record to try to add.true if the record should be added,
false otherwise.public boolean shouldAlter(AbstractRecord a)
AbstractRecordshouldAlter in class AbstractRecorda - The record to try to alter.true if the record should be altered,
false otherwise.public boolean shouldMerge(AbstractRecord a)
AbstractRecordshouldMerge in class AbstractRecorda - The record to try to merge.true if the record should be merged,
false otherwise.public boolean shouldReplace(AbstractRecord a)
AbstractRecordshouldReplace in class AbstractRecorda - The record to try to replace.true if the record should be replaced,
false otherwise.Copyright © 2016 JBoss by Red Hat. All rights reserved.