|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AdminTransaction
An administration interface for a transaction. Allows inspection of heuristic info, as well as forced two-phase commit 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()
Forces commit of the transaction. |
void |
forceForget()
Forces the system to forget about the transaction. |
void |
forceRollback()
Forces rollback of the transaction. |
HeuristicMessage[] |
getHeuristicMessages()
Gets the HeuristicMessage detailed info for this transaction. |
HeuristicMessage[] |
getHeuristicMessages(int state)
Gets the heuristic messages for work in the given state. |
int |
getState()
Gets the transaction's state. |
HeuristicMessage[] |
getTags()
Gets the high-level heuristic comments. |
String |
getTid()
Gets the transaction identifier. |
boolean |
wasCommitted()
Tests 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
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
void forceForget()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |