Main Page | Packages | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

org.objectweb.cjdbc.common.monitor.backend.ActiveTransactionCollector Class Reference

Inheritance diagram for org.objectweb.cjdbc.common.monitor.backend.ActiveTransactionCollector:

Inheritance graph
[legend]
Collaboration diagram for org.objectweb.cjdbc.common.monitor.backend.ActiveTransactionCollector:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ActiveTransactionCollector (String backendName, String virtualDatabaseName)
long getValue (Object backend)
String getDescription ()

Detailed Description

Return total of currently active transactions on this backend

Author:
Nicolas Modrzyk

Definition at line 34 of file ActiveTransactionCollector.java.


Constructor & Destructor Documentation

org.objectweb.cjdbc.common.monitor.backend.ActiveTransactionCollector.ActiveTransactionCollector String  backendName,
String  virtualDatabaseName
 

Parameters:
backendName of the backend to get data from
virtualDatabaseName database accessed to get data

Definition at line 41 of file ActiveTransactionCollector.java.

00043   {
00044     super(backendName, virtualDatabaseName);
00045   }


Member Function Documentation

String org.objectweb.cjdbc.common.monitor.backend.ActiveTransactionCollector.getDescription  )  [virtual]
 

See also:
org.objectweb.cjdbc.common.monitor.AbstractDataCollector.getDescription()

Implements org.objectweb.cjdbc.common.monitor.AbstractDataCollector.

Definition at line 62 of file ActiveTransactionCollector.java.

00063   {
00064     return Translate.get("monitoring.backend.active.transactions");
00065   }

long org.objectweb.cjdbc.common.monitor.backend.ActiveTransactionCollector.getValue Object  backend  )  [virtual]
 

Get total number of active transactions on the given backend.

Parameters:
backend backend
Returns:
total number of active transactions
See also:
org.objectweb.cjdbc.common.monitor.AbstractDataCollector.collectValue()

Implements org.objectweb.cjdbc.common.monitor.backend.AbstractBackendDataCollector.

Definition at line 54 of file ActiveTransactionCollector.java.

00055   {
00056     return ((DatabaseBackend) backend).getActiveTransactions().size();
00057   }


The documentation for this class was generated from the following file:
Generated on Mon Apr 11 22:01:47 2005 for C-JDBC by  doxygen 1.3.9.1