public class DisposeRecord extends CadaverRecord
classicPrepare, MAX_OBJECT_SIZE, shadowMade, targetParticipantStore, topLevelState
objectAddr, state
modifyingActions, 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.
|
merge
shadowForced, topLevelCleanup
alter, forgetAction, setValue, value
create, equals, forgetHeuristic, getNext, getPrevious, getTypeOfObject, greaterThan, lessThan, nestedCleanup, nestedOnePhaseCommit, order, 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 DisposeRecord(ParticipantStore participantStore, StateManager sm)
public DisposeRecord()
public boolean propagateOnAbort()
CadaverRecord
propagateOnAbort
in class CadaverRecord
true
public int typeIs()
CadaverRecord
typeIs
in class CadaverRecord
RecordType
public int nestedAbort()
CadaverRecord
nestedAbort
in class CadaverRecord
TwoPhaseOutcome
to indicate success/failure.TwoPhaseOutcome
public int nestedCommit()
RecoveryRecord
nestedCommit
in class RecoveryRecord
TwoPhaseOutcome
to indicate success/failure.TwoPhaseOutcome
public int nestedPrepare()
CadaverRecord
nestedPrepare
in class CadaverRecord
TwoPhaseOutcome
to indicate success/failure.TwoPhaseOutcome
public int topLevelAbort()
CadaverRecord
topLevelAbort
in class CadaverRecord
TwoPhaseOutcome
to indicate success/failure.TwoPhaseOutcome
public int topLevelCommit()
topLevelCommit
in class CadaverRecord
TwoPhaseOutcome
to indicate success/failure.TwoPhaseOutcome
public int topLevelPrepare()
CadaverRecord
topLevelPrepare
in class CadaverRecord
TwoPhaseOutcome
to indicate success/failure.TwoPhaseOutcome
public void print(PrintWriter strm)
CadaverRecord
print
in class CadaverRecord
strm
- the stream to use.public boolean doSave()
CadaverRecord
doSave
in class CadaverRecord
true
if the object being removed is a persistent
object (RecordType.PERSISTENT). false
otherwise.RecordType
public boolean save_state(OutputObjectState os, int ot)
AbstractRecord
save_state
in class PersistenceRecord
true
if successful, false
otherwise.public boolean restore_state(InputObjectState os, int ot)
AbstractRecord
restore_state
in class PersistenceRecord
true
if successful, false
otherwise.public String type()
CadaverRecord
type
in class CadaverRecord
public boolean shouldAdd(AbstractRecord a)
AbstractRecord
shouldAdd
in class RecoveryRecord
a
- The record to try to add.true
if the record should be added,
false
otherwise.public boolean shouldMerge(AbstractRecord a)
CadaverRecord
shouldMerge
in class CadaverRecord
a
- 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.RecordType
public boolean shouldReplace(AbstractRecord a)
CadaverRecord
shouldReplace
in class CadaverRecord
a
- 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.RecordType
public boolean shouldAlter(AbstractRecord a)
AbstractRecord
shouldAlter
in class RecoveryRecord
a
- The record to try to alter.true
if the record should be altered,
false
otherwise.Copyright © 2021 JBoss by Red Hat. All rights reserved.