public class ParticipantRecord
extends com.arjuna.ats.arjuna.coordinator.AbstractRecord
Constructor and Description |
---|
ParticipantRecord() |
ParticipantRecord(Participant theResource,
com.arjuna.ats.arjuna.common.Uid id)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
alter(com.arjuna.ats.arjuna.coordinator.AbstractRecord a) |
boolean |
complete() |
void |
completed()
record the fact that this participant has completed
|
static com.arjuna.ats.arjuna.coordinator.AbstractRecord |
create() |
void |
delist(boolean failed)
record the fact that this participant has exited
|
boolean |
doSave() |
boolean |
forgetHeuristic()
The record generated a heuristic and can now forget about it.
|
boolean |
isActive()
is the participant is still able to be sent a complete request
|
boolean |
isParticipantCompletion()
is this a ParticipantCompletion participant
|
void |
merge(com.arjuna.ats.arjuna.coordinator.AbstractRecord a) |
int |
nestedAbort()
The record is being driven through nested rollback.
|
int |
nestedCommit()
The record is being driven through nested commit.
|
int |
nestedOnePhaseCommit()
The record is being driven through nested commit and is the only
resource.
|
int |
nestedPrepare()
The record is being driven through nested prepare.
|
void |
print(PrintWriter strm) |
boolean |
propagateOnCommit()
Override AbstractRecord.propagateOnCommit
|
boolean |
restore_state(com.arjuna.ats.arjuna.state.InputObjectState os,
int t) |
boolean |
save_state(com.arjuna.ats.arjuna.state.OutputObjectState os,
int t) |
void |
setValue(Object o)
Set the internal value.
|
boolean |
shouldAdd(com.arjuna.ats.arjuna.coordinator.AbstractRecord a) |
boolean |
shouldAlter(com.arjuna.ats.arjuna.coordinator.AbstractRecord a) |
boolean |
shouldMerge(com.arjuna.ats.arjuna.coordinator.AbstractRecord a) |
boolean |
shouldReplace(com.arjuna.ats.arjuna.coordinator.AbstractRecord rec) |
int |
topLevelAbort()
The record is being driven through top-level rollback.
|
int |
topLevelCommit()
The record is being driven through top-level commit.
|
int |
topLevelOnePhaseCommit()
The record is being driven through top-level commit and is the only
resource.
|
int |
topLevelPrepare()
The record is being driven through top-level prepare.
|
String |
type() |
int |
typeIs()
The type of this abstract record.
|
Object |
value()
The internal value.
|
create, equals, getNext, getPrevious, getTypeOfObject, greaterThan, lessThan, nestedCleanup, order, propagateOnAbort, replace, setNext, setPrevious, topLevelCleanup
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 ParticipantRecord(Participant theResource, com.arjuna.ats.arjuna.common.Uid id)
theResource
- is the proxy that allows us to call out to the object.public ParticipantRecord()
public boolean propagateOnCommit()
propagateOnCommit
in class com.arjuna.ats.arjuna.coordinator.AbstractRecord
public int typeIs()
typeIs
in class com.arjuna.ats.arjuna.coordinator.AbstractRecord
public Object value()
value
in class com.arjuna.ats.arjuna.coordinator.AbstractRecord
public void setValue(Object o)
setValue
in class com.arjuna.ats.arjuna.coordinator.AbstractRecord
public int nestedAbort()
nestedAbort
in class com.arjuna.ats.arjuna.coordinator.AbstractRecord
public int nestedCommit()
nestedCommit
in class com.arjuna.ats.arjuna.coordinator.AbstractRecord
public int nestedPrepare()
nestedPrepare
in class com.arjuna.ats.arjuna.coordinator.AbstractRecord
public int topLevelAbort()
topLevelAbort
in class com.arjuna.ats.arjuna.coordinator.AbstractRecord
public int topLevelCommit()
topLevelCommit
in class com.arjuna.ats.arjuna.coordinator.AbstractRecord
public int topLevelPrepare()
topLevelPrepare
in class com.arjuna.ats.arjuna.coordinator.AbstractRecord
public int nestedOnePhaseCommit()
nestedOnePhaseCommit
in class com.arjuna.ats.arjuna.coordinator.AbstractRecord
public int topLevelOnePhaseCommit()
topLevelOnePhaseCommit
in class com.arjuna.ats.arjuna.coordinator.AbstractRecord
public boolean forgetHeuristic()
forgetHeuristic
in class com.arjuna.ats.arjuna.coordinator.AbstractRecord
public boolean complete()
public static com.arjuna.ats.arjuna.coordinator.AbstractRecord create()
public void print(PrintWriter strm)
print
in class com.arjuna.ats.arjuna.coordinator.AbstractRecord
public boolean restore_state(com.arjuna.ats.arjuna.state.InputObjectState os, int t)
restore_state
in class com.arjuna.ats.arjuna.coordinator.AbstractRecord
public boolean save_state(com.arjuna.ats.arjuna.state.OutputObjectState os, int t)
save_state
in class com.arjuna.ats.arjuna.coordinator.AbstractRecord
public String type()
type
in class com.arjuna.ats.arjuna.coordinator.AbstractRecord
public boolean doSave()
doSave
in class com.arjuna.ats.arjuna.coordinator.AbstractRecord
public void merge(com.arjuna.ats.arjuna.coordinator.AbstractRecord a)
merge
in class com.arjuna.ats.arjuna.coordinator.AbstractRecord
public void alter(com.arjuna.ats.arjuna.coordinator.AbstractRecord a)
alter
in class com.arjuna.ats.arjuna.coordinator.AbstractRecord
public boolean shouldAdd(com.arjuna.ats.arjuna.coordinator.AbstractRecord a)
shouldAdd
in class com.arjuna.ats.arjuna.coordinator.AbstractRecord
public boolean shouldAlter(com.arjuna.ats.arjuna.coordinator.AbstractRecord a)
shouldAlter
in class com.arjuna.ats.arjuna.coordinator.AbstractRecord
public boolean shouldMerge(com.arjuna.ats.arjuna.coordinator.AbstractRecord a)
shouldMerge
in class com.arjuna.ats.arjuna.coordinator.AbstractRecord
public boolean shouldReplace(com.arjuna.ats.arjuna.coordinator.AbstractRecord rec)
shouldReplace
in class com.arjuna.ats.arjuna.coordinator.AbstractRecord
public final void delist(boolean failed)
failed
- true if the exit was because of a failure i.e. the participant may be in an unclean statepublic final void completed()
public final boolean isActive()
public final boolean isParticipantCompletion()
Copyright © 2017 JBoss by Red Hat. All rights reserved.