org.objectweb.jonas.jtm.jotm.mbean
Class JTAResource
java.lang.Object
javax.management.NotificationBroadcasterSupport
org.objectweb.jonas.management.reconfig.emitter.ReconfigEmitter
org.objectweb.jonas.management.j2eemanagement.J2EEManagedObject
org.objectweb.jonas.management.j2eemanagement.J2EEResource
org.objectweb.jonas.jtm.jotm.mbean.JTAResource
- All Implemented Interfaces:
- NotificationBroadcaster, NotificationEmitter
public class JTAResource
- extends J2EEResource
MBean class for JTAResource Management
- Author:
- Eric Hardesty JSR 77 (J2EE Management Standard)
Field Summary |
static String |
SERVICE_NAME
Service name as used to label configuration properties |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SERVICE_NAME
public static final String SERVICE_NAME
- Service name as used to label configuration properties
- See Also:
- Constant Field Values
JTAResource
public JTAResource(String objectName,
JOTMTransactionService jtm,
Integer timeOut,
Boolean localJtm,
Integer portNumber,
String hostName)
- JTA Resource constructor
- Parameters:
objectName
- String conformant to a JTAResource OBJECT_NAME in JSR77jtm
- Managed JTMtimeOut
- transactions time-outlocalJtm
- true if JTM is local, false if remoteportNumber
- JTM port numberhostName
- JTM host name
getTimeOut
public Integer getTimeOut()
- Returns:
- Returns the timeOut.
setTimeOut
public void setTimeOut(Integer timeOut)
- Parameters:
timeOut
- The timeOut to set.
isLocalJtm
public Boolean isLocalJtm()
- Returns:
- true if JTM is local, false if remote
getPortNumber
public Integer getPortNumber()
- Returns:
- JTM port number
getHostName
public String getHostName()
- Returns:
- JTM host name
saveConfig
public void saveConfig()
- Save updated configuration
getTotalBegunTransactions
public Integer getTotalBegunTransactions()
- Returns:
- Returns the totalBegunTransactions.
getTotalCommittedTransactions
public Integer getTotalCommittedTransactions()
- Returns:
- Returns the totalCommittedTransactions.
getTotalCurrentTransactions
public Integer getTotalCurrentTransactions()
- Returns:
- Returns the totalCurrentTransactions.
getTotalExpiredTransactions
public Integer getTotalExpiredTransactions()
- Returns:
- Returns the totalExpiredTransactions.
getTotalRolledbackTransactions
public Integer getTotalRolledbackTransactions()
- Returns:
- Returns the totalRolledbackTransactions.
resetAllCounters
public void resetAllCounters()
- Reset all transaction counters
getAllActiveXids
public Xid[] getAllActiveXids()
- Returns:
- Returns all active Xids.
getAllActiveTx
public String[] getAllActiveTx()
- Returns:
- Returns all active Transactions.
getAllRecoveryTx
public String[] getAllRecoveryTx()
- Returns:
- Returns all Transactions that require administrator recovery action.
getAllXAResource
public String[] getAllXAResource(String xatx)
- Returns:
- Returns all XAResources that require administrator recovery action.
commitXAResource
public int commitXAResource(String xatx)
- Returns:
- Returns all XAResources that require administrator recovery action.
rollbackXAResource
public int rollbackXAResource(String xatx)
- Returns:
- Returns all XAResources that require administrator recovery action.
forgetXAResource
public int forgetXAResource(String xatx)
- Returns:
- Returns all XAResources that require administrator recovery action.
Copyright © 2007 OW2 Consortium. All Rights Reserved.