com.atomikos.icatch.admin.jmx
Class JmxHeuristicTransaction
java.lang.Object
com.atomikos.icatch.admin.jmx.JmxTransaction
com.atomikos.icatch.admin.jmx.JmxHeuristicTransaction
- All Implemented Interfaces:
- JmxHeuristicTransactionMBean, JmxTransactionMBean, MBeanRegistration
public class JmxHeuristicTransaction
- extends JmxTransaction
- implements JmxHeuristicTransactionMBean
An MBean wrapper for a heuristic AdminTransaction.
Method Summary |
void |
forceForget()
Force the system to forget about the transaction. |
boolean |
getCommitted()
Test if the transaction's 2PC outcome was commit. |
Methods inherited from class com.atomikos.icatch.admin.jmx.JmxTransaction |
convertHeuristicMessages, convertState, getAdminTransaction, getHeuristicMessages, getState, getTags, getTid, postDeregister, postRegister, preDeregister, preRegister, unregister |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JmxHeuristicTransaction
public JmxHeuristicTransaction(AdminTransaction adminTransaction)
- Parameters:
adminTransaction
- The instance to wrap
getCommitted
public boolean getCommitted()
- Description copied from interface:
JmxHeuristicTransactionMBean
- Test if the transaction's 2PC outcome was commit. Needed especially for
the heuristic states, if the desired outcome (instead of the actual
state) needs to be retrieved. For instance, if the state is
STATE_HEUR_HAZARD then extra information is needed for determining if the
desired outcome was commit or rollback. This method helps here.
- Specified by:
getCommitted
in interface JmxHeuristicTransactionMBean
- Returns:
- boolean True iff commit decided (either heuristically or by the
super coordinator.
- See Also:
com.atomikos.icatch.admin.jmx.JmxHeuristicTransactionMBean#wasCommitted()
forceForget
public void forceForget()
- Description copied from interface:
JmxHeuristicTransactionMBean
- Force the system to forget about the transaction.
- Specified by:
forceForget
in interface JmxHeuristicTransactionMBean
- See Also:
JmxHeuristicTransactionMBean.forceForget()
Copyright © 2011. All Rights Reserved.