|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AdminTransaction
An administrator interface for a transaction. Allows inspection of heuristic info, as well as forced 2PC methods.
Field Summary | |
---|---|
static int |
STATE_ABORTING
|
static int |
STATE_ACTIVE
|
static int |
STATE_COMMITTING
|
static int |
STATE_HEUR_ABORTED
|
static int |
STATE_HEUR_COMMITTED
|
static int |
STATE_HEUR_HAZARD
|
static int |
STATE_HEUR_MIXED
|
static int |
STATE_PREPARED
|
static int |
STATE_PREPARING
|
static int |
STATE_TERMINATED
|
static int |
STATE_UNKNOWN
|
Method Summary | |
---|---|
void |
forceCommit()
Force commit of the transaction. |
void |
forceForget()
Force the system to forget about the transaction. |
void |
forceRollback()
Force rollback of the transaction. |
HeuristicMessage[] |
getHeuristicMessages()
Get the HeuristicMessage detailed info for this transaction. |
HeuristicMessage[] |
getHeuristicMessages(int state)
Get the heuristic messages for work in the given state. |
int |
getState()
Get the transaction's state. |
HeuristicMessage[] |
getTags()
Get the high-level heuristic comments. |
String |
getTid()
Get the transaction identifier. |
boolean |
wasCommitted()
Test if the transaction's 2PC outcome was commit. |
Field Detail |
---|
static final int STATE_ACTIVE
static final int STATE_PREPARING
static final int STATE_UNKNOWN
static final int STATE_PREPARED
static final int STATE_HEUR_COMMITTED
static final int STATE_HEUR_ABORTED
static final int STATE_HEUR_HAZARD
static final int STATE_HEUR_MIXED
static final int STATE_ABORTING
static final int STATE_COMMITTING
static final int STATE_TERMINATED
Method Detail |
---|
String getTid()
int getState()
HeuristicMessage[] getTags()
HeuristicMessage[] getHeuristicMessages()
HeuristicMessage[] getHeuristicMessages(int state)
boolean wasCommitted()
void forceCommit() throws HeurRollbackException, HeurHazardException, HeurMixedException, SysException
HeurRollbackException
- If rolled back in the meantime.
HeurMixedException
- If part of it was rolled back.
HeurHazardException
- On possible conflicts.
SysException
- Unexpected failure.void forceRollback() throws HeurCommitException, HeurMixedException, HeurHazardException, SysException
HeurCommitException
- If heuristically committed in
the meantime.
HeurHazardException
- If the state is not certain.
HeurMixedException
- If partially rolled back.
SysException
- Unexpected failure.void forceForget()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |