public class PersistenceRecord extends RecoveryRecord
| Modifier and Type | Field and Description |
|---|---|
protected static boolean |
classicPrepare |
static int |
MAX_OBJECT_SIZE |
protected boolean |
shadowMade |
protected ParticipantStore |
targetParticipantStore |
protected OutputObjectState |
topLevelState |
objectAddr, statemodifyingActions, objectModel, objectUid, usingActions| Constructor and Description |
|---|
PersistenceRecord()
Creates a 'blank' persistence record.
|
PersistenceRecord(OutputObjectState os,
ParticipantStore participantStore,
StateManager sm)
This constructor is used to create a new instance of PersistenceRecord.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
doSave()
Should this record be saved in the intentions list? If the record is
saved, then it may be recovered later in the event of a failure.
|
void |
print(PrintWriter strm)
Write information about this specific instance to the specified stream.
|
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).
|
protected boolean |
shadowForced()
Cadaver records force write shadows.
|
int |
topLevelAbort()
topLevelAbort may have to remove the persistent state that was written
into the object store during the processing of topLevelPrepare.
|
int |
topLevelCleanup()
topLevelCleanup must leave the persistent state that was written in the
object store during the processing of topLevelPrepare intact.
|
int |
topLevelCommit()
commit the state saved during the prepare phase.
|
int |
topLevelPrepare()
topLevelPrepare attempts to save the object.
|
String |
type()
Re-implementation of abstract methods inherited from base class.
|
int |
typeIs()
Redefintions of abstract functions inherited from RecoveryRecord.
|
alter, finalize, forgetAction, merge, nestedAbort, nestedCommit, nestedPrepare, setValue, shouldAdd, shouldAlter, shouldMerge, shouldReplace, valuecreate, equals, forgetHeuristic, getNext, getPrevious, getTypeOfObject, greaterThan, lessThan, nestedCleanup, nestedOnePhaseCommit, order, propagateOnAbort, 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 static final int MAX_OBJECT_SIZE
protected boolean shadowMade
protected ParticipantStore targetParticipantStore
protected OutputObjectState topLevelState
protected static final boolean classicPrepare
public PersistenceRecord(OutputObjectState os, ParticipantStore participantStore, StateManager sm)
public PersistenceRecord()
public int typeIs()
typeIs in class RecoveryRecordRecordType value.public int topLevelAbort()
topLevelAbort in class RecoveryRecordTwoPhaseOutcome to indicate success/failure.TwoPhaseOutcomepublic int topLevelCommit()
topLevelCommit in class RecoveryRecordTwoPhaseOutcome to indicate success/failure.TwoPhaseOutcomepublic int topLevelPrepare()
topLevelPrepare in class RecoveryRecordTwoPhaseOutcome to indicate success/failure.TwoPhaseOutcomepublic int topLevelCleanup()
topLevelCleanup in class AbstractRecordTwoPhaseOutcome as default is the same as
topLevelAbort.public boolean doSave()
AbstractRecorddoSave in class RecoveryRecordtruepublic boolean restore_state(InputObjectState os, int ot)
AbstractRecordrestore_state in class RecoveryRecordtrue if successful, false
otherwise.public boolean save_state(OutputObjectState os, int ot)
AbstractRecordsave_state in class RecoveryRecordtrue if successful, false
otherwise.public void print(PrintWriter strm)
AbstractRecordprint in class RecoveryRecordstrm - the stream on which to output.public String type()
AbstractRecordtype in class RecoveryRecordprotected boolean shadowForced()
Copyright © 2016 JBoss by Red Hat. All rights reserved.