站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 transaction API Documentation 英文版文档

TransactionManagerServiceMBean (JBoss Transaction API) - JBoss 4.0.1 sp1 transaction API Documentation 英文版文档


org.jboss.tm
Interface TransactionManagerServiceMBean

All Superinterfaces:
org.jboss.system.Service, org.jboss.system.ServiceMBean
All Known Implementing Classes:
TransactionManagerService

public interface TransactionManagerServiceMBean
extends org.jboss.system.ServiceMBean

MBean interface.

See Also:
TxManager

Field Summary
 
Fields inherited from interface org.jboss.system.ServiceMBean
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED
 
Method Summary
 long getCommitCount()
          The number of commits.
 boolean getGlobalIdsEnabled()
          Describe getGlobalIdsEnabled method here.
 long getRollbackCount()
          The number of rollbacks.
 long getTransactionCount()
          Counts the number of transactions
 TransactionManager getTransactionManager()
          mbean get-set pair for field transactionManager Get the value of transactionManager
 int getTransactionTimeout()
          Describe getTransactionTimeout method here.
 JBossXATerminator getXATerminator()
          Get the xa terminator
 javax.management.ObjectName getXidFactory()
          mbean get-set pair for field xidFactory Get the value of xidFactory
 boolean isInterruptThreads()
          Is thread interruption enabled at transaction timeout
 void registerXAExceptionFormatter(Class clazz, XAExceptionFormatter formatter)
          The registerXAExceptionFormatter method
 void setGlobalIdsEnabled(boolean newValue)
          Describe setGlobalIdsEnabled method here.
 void setInterruptThreads(boolean interruptThreads)
          Enable/disable thread interruption at transaction timeout.
 void setTransactionTimeout(int timeout)
          Describe setTransactionTimeout method here.
 void setXidFactory(javax.management.ObjectName xidFactory)
          Set the value of xidFactory
 void unregisterXAExceptionFormatter(Class clazz)
          The unregisterXAExceptionFormatter method
 
Methods inherited from interface org.jboss.system.ServiceMBean
getName, getState, getStateString, jbossInternalLifecycle
 
Methods inherited from interface org.jboss.system.Service
create, destroy, start, stop
 

Method Detail

getGlobalIdsEnabled

public boolean getGlobalIdsEnabled()
Describe getGlobalIdsEnabled method here.

Returns:
an boolean value

setGlobalIdsEnabled

public void setGlobalIdsEnabled(boolean newValue)
Describe setGlobalIdsEnabled method here.

Parameters:
newValue - an boolean value

isInterruptThreads

public boolean isInterruptThreads()
Is thread interruption enabled at transaction timeout

Returns:
true for interrupt threads, false otherwise

setInterruptThreads

public void setInterruptThreads(boolean interruptThreads)
Enable/disable thread interruption at transaction timeout.

Parameters:
interruptThreads - pass true to interrupt threads, false otherwise

getTransactionTimeout

public int getTransactionTimeout()
Describe getTransactionTimeout method here.

Returns:
an int value

setTransactionTimeout

public void setTransactionTimeout(int timeout)
Describe setTransactionTimeout method here.

Parameters:
timeout - an int value

getXidFactory

public javax.management.ObjectName getXidFactory()
mbean get-set pair for field xidFactory Get the value of xidFactory

Returns:
value of xidFactory

setXidFactory

public void setXidFactory(javax.management.ObjectName xidFactory)
Set the value of xidFactory

Parameters:
xidFactory - Value to assign to xidFactory

getTransactionManager

public TransactionManager getTransactionManager()
mbean get-set pair for field transactionManager Get the value of transactionManager

Returns:
value of transactionManager

getXATerminator

public JBossXATerminator getXATerminator()
Get the xa terminator

Returns:
the xa terminator

getTransactionCount

public long getTransactionCount()
Counts the number of transactions

Returns:
the number of active transactions

getCommitCount

public long getCommitCount()
The number of commits.

Returns:
the number of transactions that have been committed

getRollbackCount

public long getRollbackCount()
The number of rollbacks.

Returns:
the number of transactions that have been rolled back

registerXAExceptionFormatter

public void registerXAExceptionFormatter(Class clazz,
                                         XAExceptionFormatter formatter)
The registerXAExceptionFormatter method

Parameters:
clazz - a Class value
formatter - a XAExceptionFormatter value

unregisterXAExceptionFormatter

public void unregisterXAExceptionFormatter(Class clazz)
The unregisterXAExceptionFormatter method

Parameters:
clazz - a Class value


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.