com.atomikos.icatch.admin.jmx
Class JmxTransaction

java.lang.Object
  extended by com.atomikos.icatch.admin.jmx.JmxTransaction
All Implemented Interfaces:
JmxTransactionMBean, MBeanRegistration
Direct Known Subclasses:
JmxDefaultTransaction, JmxHeuristicTransaction, JmxPreparedTransaction

public abstract class JmxTransaction
extends Object
implements JmxTransactionMBean, MBeanRegistration

The base class for MBean administration of transactions.


Constructor Summary
JmxTransaction(AdminTransaction adminTransaction)
          Wraps an existing AdminTransaction instance as an MBean.
 
Method Summary
protected  AdminTransaction getAdminTransaction()
           
 String[] getParticipantDetails()
          Retrieves the descriptive details for each participant involved in this transaction.
 String getState()
          Gets the transaction's state.
 String getTid()
          Gets the transaction identifier.
 void postDeregister()
           
 void postRegister(Boolean arg0)
           
 void preDeregister()
           
 ObjectName preRegister(MBeanServer server, ObjectName name)
           
protected  void unregister()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JmxTransaction

public JmxTransaction(AdminTransaction adminTransaction)
Wraps an existing AdminTransaction instance as an MBean.

Parameters:
adminTransaction - The existing to wrap.
Method Detail

getAdminTransaction

protected AdminTransaction getAdminTransaction()

unregister

protected void unregister()

getTid

public String getTid()
Description copied from interface: JmxTransactionMBean
Gets the transaction identifier.

Specified by:
getTid in interface JmxTransactionMBean
Returns:
String The unique id.
See Also:
jmx.TransactionMBean

getState

public String getState()
Description copied from interface: JmxTransactionMBean
Gets the transaction's state.

Specified by:
getState in interface JmxTransactionMBean
Returns:
String The state, represented as by its name
See Also:
jmx.TransactionMBean

preRegister

public ObjectName preRegister(MBeanServer server,
                              ObjectName name)
                       throws Exception
Specified by:
preRegister in interface MBeanRegistration
Throws:
Exception
See Also:
MBeanRegistration.preRegister(javax.management.MBeanServer, javax.management.ObjectName)

postRegister

public void postRegister(Boolean arg0)
Specified by:
postRegister in interface MBeanRegistration
See Also:
MBeanRegistration.postRegister(java.lang.Boolean)

preDeregister

public void preDeregister()
                   throws Exception
Specified by:
preDeregister in interface MBeanRegistration
Throws:
Exception
See Also:
MBeanRegistration.preDeregister()

postDeregister

public void postDeregister()
Specified by:
postDeregister in interface MBeanRegistration
See Also:
MBeanRegistration.postDeregister()

getParticipantDetails

public String[] getParticipantDetails()
Description copied from interface: JmxTransactionMBean
Retrieves the descriptive details for each participant involved in this transaction.

Specified by:
getParticipantDetails in interface JmxTransactionMBean


Copyright © 2016. All Rights Reserved.