org.objectweb.jonas.jtm.TransactionServiceImpl Class Reference

Inherits org.objectweb.jonas.jtm.TransactionService, and org.objectweb.jonas.jtm.TransactionServiceImplMBean.

Inheritance diagram for org.objectweb.jonas.jtm.TransactionServiceImpl:

Inheritance graph
[legend]
Collaboration diagram for org.objectweb.jonas.jtm.TransactionServiceImpl:

Collaboration graph
[legend]
List of all members.

Public Member Functions

void doInit (Context ctx) throws ServiceException
void doStart () throws ServiceException
void doStop () throws ServiceException
Current getCurrent ()
TransactionManager getTransactionManager ()
UserTransaction getUserTransaction ()
TransactionFactory getTransactionFactory ()
void setTimeout (int t)

Static Public Attributes

final String SERVICE_NAME = "jtm"

Protected Member Functions

int getTotalBegunTransactions ()
int getTotalCommittedTransactions ()
int getTotalCurrentTransactions ()
int getTotalExpiredTransactions ()
int getTotalRolledbackTransactions ()
void resetAllTxTotalCounters ()
Xid[] getAllActiveXids ()
String[] getAllActiveTx ()

Static Package Attributes

final String TIMEOUT = "jonas.service.jtm.timeout"
final String REMOTE = "jonas.service.jtm.remote"
final String CLASS = "jonas.service.jtm.class"

Detailed Description

Transaction Service implementation. This singleton class must exist in each jonas server. This class manages a unique Current object that implements both TransactionManager and UserTransaction interfaces.
Author:
Philippe Durieux Contributor(s): Adriana Danes

Definition at line 65 of file TransactionServiceImpl.java.


Member Function Documentation

void org.objectweb.jonas.jtm.TransactionServiceImpl.doInit Context  ctx  )  throws ServiceException
 

Init the Service. Configuration information is passed thru a Context object.

Parameters:
ctx naming context containing configuration parameters
Exceptions:
ServiceException if service initialization failes

Definition at line 125 of file TransactionServiceImpl.java.

References org.objectweb.jonas.jtm.TransactionServiceImpl.REMOTE, and org.objectweb.jonas.jtm.TransactionServiceImpl.TIMEOUT.

void org.objectweb.jonas.jtm.TransactionServiceImpl.doStart  )  throws ServiceException
 

Start the Service Initialization of the service is already done.

Exceptions:
ServiceException if service start fails

Definition at line 175 of file TransactionServiceImpl.java.

References org.objectweb.jonas.jtm.TransactionServiceImpl.setTimeout().

Here is the call graph for this function:

void org.objectweb.jonas.jtm.TransactionServiceImpl.doStop  )  throws ServiceException
 

Stop the transaction service Not already implementated

Exceptions:
ServiceException if the service stop fails

Definition at line 281 of file TransactionServiceImpl.java.

String [] org.objectweb.jonas.jtm.TransactionServiceImpl.getAllActiveTx  )  [protected]
 

Get all currently executing transactions

Returns:
total number of executing transaction

Definition at line 402 of file TransactionServiceImpl.java.

Referenced by org.objectweb.jonas.jtm.JTAResource.getAllActiveTx().

Xid [] org.objectweb.jonas.jtm.TransactionServiceImpl.getAllActiveXids  )  [protected]
 

Get all currently executing Xids

Returns:
total number of executing Xids

Definition at line 394 of file TransactionServiceImpl.java.

Referenced by org.objectweb.jonas.jtm.JTAResource.getAllActiveXids().

Current org.objectweb.jonas.jtm.TransactionServiceImpl.getCurrent  ) 
 

Gets the Current object instance

Returns:
the current object

Implements org.objectweb.jonas.jtm.TransactionService.

Definition at line 293 of file TransactionServiceImpl.java.

int org.objectweb.jonas.jtm.TransactionServiceImpl.getTotalBegunTransactions  )  [protected]
 

Get begun transactions number

Returns:
total number of begun transactions

Definition at line 347 of file TransactionServiceImpl.java.

Referenced by org.objectweb.jonas.jtm.JTAResource.getTotalBegunTransactions().

int org.objectweb.jonas.jtm.TransactionServiceImpl.getTotalCommittedTransactions  )  [protected]
 

Get committed transactions number

Returns:
total number of committed transactions

Definition at line 355 of file TransactionServiceImpl.java.

Referenced by org.objectweb.jonas.jtm.JTAResource.getTotalCommittedTransactions().

int org.objectweb.jonas.jtm.TransactionServiceImpl.getTotalCurrentTransactions  )  [protected]
 

Get current transactions number

Returns:
total number of current transactions

Definition at line 363 of file TransactionServiceImpl.java.

Referenced by org.objectweb.jonas.jtm.JTAResource.getTotalCurrentTransactions().

int org.objectweb.jonas.jtm.TransactionServiceImpl.getTotalExpiredTransactions  )  [protected]
 

Get expired transactions number

Returns:
total number of expired transactions

Definition at line 371 of file TransactionServiceImpl.java.

Referenced by org.objectweb.jonas.jtm.JTAResource.getTotalExpiredTransactions().

int org.objectweb.jonas.jtm.TransactionServiceImpl.getTotalRolledbackTransactions  )  [protected]
 

Get rollebacked transactions number

Returns:
total number of rollbacked transactions

Definition at line 379 of file TransactionServiceImpl.java.

Referenced by org.objectweb.jonas.jtm.JTAResource.getTotalRolledbackTransactions().

TransactionFactory org.objectweb.jonas.jtm.TransactionServiceImpl.getTransactionFactory  ) 
 

Gets the TransactionFactory object (JTM factory)

Returns:
the transaction factory (JTM object)

Implements org.objectweb.jonas.jtm.TransactionService.

Definition at line 317 of file TransactionServiceImpl.java.

TransactionManager org.objectweb.jonas.jtm.TransactionServiceImpl.getTransactionManager  ) 
 

Gets the TransactionManager object instance

Returns:
the transaction manager

Implements org.objectweb.jonas.jtm.TransactionService.

Definition at line 301 of file TransactionServiceImpl.java.

UserTransaction org.objectweb.jonas.jtm.TransactionServiceImpl.getUserTransaction  ) 
 

Gets the UserTransaction object instance

Returns:
the user transaction object

Implements org.objectweb.jonas.jtm.TransactionService.

Definition at line 309 of file TransactionServiceImpl.java.

void org.objectweb.jonas.jtm.TransactionServiceImpl.resetAllTxTotalCounters  )  [protected]
 

Reset all transaction counters

Definition at line 386 of file TransactionServiceImpl.java.

Referenced by org.objectweb.jonas.jtm.JTAResource.resetAllCounters().

void org.objectweb.jonas.jtm.TransactionServiceImpl.setTimeout int  t  ) 
 

Sets the default transaction timeout and register Current in JNDI

Parameters:
t new value for time-out

Implements org.objectweb.jonas.jtm.TransactionService.

Definition at line 325 of file TransactionServiceImpl.java.

Referenced by org.objectweb.jonas.jtm.TransactionServiceImpl.doStart(), and org.objectweb.jonas.jtm.JTAResource.setTimeOut().


Member Data Documentation

final String org.objectweb.jonas.jtm.TransactionServiceImpl.CLASS = "jonas.service.jtm.class" [static, package]
 

name of the 'class' configuration parameter

Definition at line 85 of file TransactionServiceImpl.java.

final String org.objectweb.jonas.jtm.TransactionServiceImpl.REMOTE = "jonas.service.jtm.remote" [static, package]
 

name of the 'remote' configuration parameter

Definition at line 81 of file TransactionServiceImpl.java.

Referenced by org.objectweb.jonas.jtm.TransactionServiceImpl.doInit().

final String org.objectweb.jonas.jtm.TransactionServiceImpl.SERVICE_NAME = "jtm" [static]
 

Service name as used to label configuration properties

Definition at line 72 of file TransactionServiceImpl.java.

final String org.objectweb.jonas.jtm.TransactionServiceImpl.TIMEOUT = "jonas.service.jtm.timeout" [static, package]
 

name of the 'timeout' configuration parameter

Definition at line 77 of file TransactionServiceImpl.java.

Referenced by org.objectweb.jonas.jtm.TransactionServiceImpl.doInit().


The documentation for this class was generated from the following file:
Generated on Tue Feb 15 15:07:04 2005 for JOnAS by  doxygen 1.3.9.1