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, state
modifyingActions, 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, forgetAction, merge, nestedAbort, nestedCommit, nestedPrepare, setValue, shouldAdd, shouldAlter, shouldMerge, shouldReplace, value
create, equals, forgetHeuristic, getNext, getPrevious, getTypeOfObject, greaterThan, lessThan, nestedCleanup, nestedOnePhaseCommit, order, propagateOnAbort, propagateOnCommit, replace, setNext, setPrevious, topLevelOnePhaseCommit
activate, 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, unpackHeader
public 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 RecoveryRecord
RecordType
value.public int topLevelAbort()
topLevelAbort
in class RecoveryRecord
TwoPhaseOutcome
to indicate success/failure.TwoPhaseOutcome
public int topLevelCommit()
topLevelCommit
in class RecoveryRecord
TwoPhaseOutcome
to indicate success/failure.TwoPhaseOutcome
public int topLevelPrepare()
topLevelPrepare
in class RecoveryRecord
TwoPhaseOutcome
to indicate success/failure.TwoPhaseOutcome
public int topLevelCleanup()
topLevelCleanup
in class AbstractRecord
TwoPhaseOutcome
as default is the same as
topLevelAbort.public boolean doSave()
AbstractRecord
doSave
in class RecoveryRecord
true
public boolean restore_state(InputObjectState os, int ot)
AbstractRecord
restore_state
in class RecoveryRecord
true
if successful, false
otherwise.public boolean save_state(OutputObjectState os, int ot)
AbstractRecord
save_state
in class RecoveryRecord
true
if successful, false
otherwise.public void print(PrintWriter strm)
AbstractRecord
print
in class RecoveryRecord
strm
- the stream on which to output.public String type()
AbstractRecord
type
in class RecoveryRecord
protected boolean shadowForced()
Copyright © 2021 JBoss by Red Hat. All rights reserved.