org.jboss.tm
Interface TransactionManagerServiceMBean

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

public interface TransactionManagerServiceMBean
extends org.jboss.system.ServiceMBean, TransactionManagerFactory

TransactionManagerService MBean interface.

Version:
$Revision: 57208 $
See Also:
TxManager

Field Summary
static javax.management.ObjectName OBJECT_NAME
           
 
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
 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 setTransactionIntegrityFactory(TransactionIntegrityFactory factory)
          Set the Integrity checker factory
 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
 
Methods inherited from interface org.jboss.tm.TransactionManagerFactory
getTransactionManager
 

Field Detail

OBJECT_NAME

static final javax.management.ObjectName OBJECT_NAME
Method Detail

getGlobalIdsEnabled

boolean getGlobalIdsEnabled()
Describe getGlobalIdsEnabled method here.

Returns:
an boolean value

setGlobalIdsEnabled

void setGlobalIdsEnabled(boolean newValue)
Describe setGlobalIdsEnabled method here.

Parameters:
newValue - an boolean value

isInterruptThreads

boolean isInterruptThreads()
Is thread interruption enabled at transaction timeout

Returns:
true for interrupt threads, false otherwise

setInterruptThreads

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

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

getTransactionTimeout

int getTransactionTimeout()
Describe getTransactionTimeout method here.

Returns:
an int value

setTransactionTimeout

void setTransactionTimeout(int timeout)
Describe setTransactionTimeout method here.

Parameters:
timeout - an int value

getXidFactory

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

Returns:
value of xidFactory

setXidFactory

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

Parameters:
xidFactory - Value to assign to xidFactory

getXATerminator

JBossXATerminator getXATerminator()
Get the xa terminator

Returns:
the xa terminator

getTransactionCount

long getTransactionCount()
Counts the number of transactions

Returns:
the number of active transactions

getCommitCount

long getCommitCount()
The number of commits.

Returns:
the number of transactions that have been committed

getRollbackCount

long getRollbackCount()
The number of rollbacks.

Returns:
the number of transactions that have been rolled back

registerXAExceptionFormatter

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

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

unregisterXAExceptionFormatter

void unregisterXAExceptionFormatter(Class clazz)
The unregisterXAExceptionFormatter method

Parameters:
clazz - a Class value

setTransactionIntegrityFactory

void setTransactionIntegrityFactory(TransactionIntegrityFactory factory)
Set the Integrity checker factory

Parameters:
factory - the integrity checker factory


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