public class DisposeRecord extends CadaverRecord
classicPrepare, MAX_OBJECT_SIZE, shadowMade, targetParticipantStore, topLevelStateobjectAddr, statemodifyingActions, objectModel, usingActions| Constructor and Description |
|---|
DisposeRecord() |
DisposeRecord(ParticipantStore participantStore,
StateManager sm) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
doSave()
Override the AbstractRecord.doSave.
|
int |
nestedAbort()
The nested transaction has aborted.
|
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()
The nested transaction is preparing.
|
void |
print(PrintWriter strm)
Override AbstractRecord.print to write specific information to
the specified stream.
|
boolean |
propagateOnAbort()
Override default AbstractRecord method.
|
boolean |
restore_state(InputObjectState os,
int ot)
During recovery, the transaction log is given to the recovery system and
it will recreate a transaction instance to perform necessary recovery
actions.
|
boolean |
save_state(OutputObjectState os,
int ot)
When the transaction is required to make the intentions list persistent,
it scans the list and asks each record whether or not it requires state
to be saved (by calling doSave).
|
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)
Overrides AbstractRecord.shouldMerge
|
boolean |
shouldReplace(AbstractRecord a)
Overrides AbstractRecord.shouldReplace
|
int |
topLevelAbort()
The nested transaction has aborted.
|
int |
topLevelCommit()
At topLevelCommit we remove the state from the object participantStore.
|
int |
topLevelPrepare()
At topLevelPrepare write uncommitted version into object participantStore.
|
String |
type()
The type of the class - may be used to save information in an
hierarchical manner in the object participantStore.
|
int |
typeIs()
The type of the record.
|
mergeshadowForced, topLevelCleanupalter, finalize, forgetAction, setValue, valuecreate, equals, forgetHeuristic, getNext, getPrevious, getTypeOfObject, greaterThan, lessThan, nestedCleanup, nestedOnePhaseCommit, order, propagateOnCommit, replace, setNext, setPrevious, 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 DisposeRecord(ParticipantStore participantStore, StateManager sm)
public DisposeRecord()
public boolean propagateOnAbort()
CadaverRecordpropagateOnAbort in class CadaverRecordtruepublic int typeIs()
CadaverRecordtypeIs in class CadaverRecordRecordTypepublic int nestedAbort()
CadaverRecordnestedAbort in class CadaverRecordTwoPhaseOutcome to indicate success/failure.TwoPhaseOutcomepublic int nestedCommit()
RecoveryRecordnestedCommit in class RecoveryRecordTwoPhaseOutcome to indicate success/failure.TwoPhaseOutcomepublic int nestedPrepare()
CadaverRecordnestedPrepare in class CadaverRecordTwoPhaseOutcome to indicate success/failure.TwoPhaseOutcomepublic int topLevelAbort()
CadaverRecordtopLevelAbort in class CadaverRecordTwoPhaseOutcome to indicate success/failure.TwoPhaseOutcomepublic int topLevelCommit()
topLevelCommit in class CadaverRecordTwoPhaseOutcome to indicate success/failure.TwoPhaseOutcomepublic int topLevelPrepare()
CadaverRecordtopLevelPrepare in class CadaverRecordTwoPhaseOutcome to indicate success/failure.TwoPhaseOutcomepublic void print(PrintWriter strm)
CadaverRecordprint in class CadaverRecordstrm - the stream to use.public boolean doSave()
CadaverRecorddoSave in class CadaverRecordtrue if the object being removed is a persistent
object (RecordType.PERSISTENT). false otherwise.RecordTypepublic boolean save_state(OutputObjectState os, int ot)
AbstractRecordsave_state in class PersistenceRecordtrue if successful, false
otherwise.public boolean restore_state(InputObjectState os, int ot)
AbstractRecordrestore_state in class PersistenceRecordtrue if successful, false
otherwise.public String type()
CadaverRecordtype in class CadaverRecordpublic boolean shouldAdd(AbstractRecord a)
AbstractRecordshouldAdd in class RecoveryRecorda - The record to try to add.true if the record should be added,
false otherwise.public boolean shouldMerge(AbstractRecord a)
CadaverRecordshouldMerge in class CadaverRecorda - the record to potentially merge with.true if this instance and the parameter have the
same id (order()) and the parameter is either persistent or recoverable.
false otherwise.RecordTypepublic boolean shouldReplace(AbstractRecord a)
CadaverRecordshouldReplace in class CadaverRecorda - the record to potentially replace this
instance.true if this instance and the parameter have the
same id (order()) and the parameter is either persistent or recoverable.
false otherwise.RecordTypepublic boolean shouldAlter(AbstractRecord a)
AbstractRecordshouldAlter in class RecoveryRecorda - The record to try to alter.true if the record should be altered,
false otherwise.Copyright © 2013. All rights reserved.