org.objectweb.jonas.dbm.JDBCDataSource Class Reference

Collaboration diagram for org.objectweb.jonas.dbm.JDBCDataSource:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 JDBCDataSource (String objectName, ConnectionManager cm)
String getJdbcDriver ()
void setJdbcDriver (String jdbcDriverObjectName)
String getName ()
String getJndiName ()
String getDescription ()
String getUrl ()
String getUserName ()
String getUserPassword ()
String getMapperName ()
Integer getJdbcConnCheckLevel ()
void setJdbcConnCheckLevel (Integer level)
Integer getJdbcConnMaxAge ()
void setJdbcConnMaxAge (Integer mn)
Integer getJdbcMaxConnPool ()
void setJdbcMaxConnPool (Integer max)
Integer getJdbcMaxOpenTime ()
void setJdbcMaxOpenTime (Integer mn)
Integer getJdbcMaxWaiters ()
void setJdbcMaxWaiters (Integer max)
Integer getJdbcMaxWaitTime ()
void setJdbcMaxWaitTime (Integer max)
Integer getJdbcMinConnPool ()
void setJdbcMinConnPool (Integer min)
Integer getJdbcSamplingPeriod ()
void setJdbcSamplingPeriod (Integer i)
String getJdbcTestStatement ()
void setJdbcTestStatement (String test)
Integer getConnectionFailures ()
Integer getConnectionLeaks ()
Integer getCurrentBusy ()
Integer getBusyMax ()
Integer getBusyMin ()
Integer getCurrentInTx ()
Integer getCurrentOpened ()
Integer getCurrentWaiters ()
Integer getOpenedCount ()
Integer getRejectedFull ()
Integer getRejectedOpen ()
Integer getRejectedOther ()
Integer getRejectedTimeout ()
Integer getServedOpen ()
Integer getWaiterCount ()
Integer getWaitersHigh ()
Integer getWaitersHighRecent ()
Long getWaitingHigh ()
Long getWaitingHighRecent ()
Long getWaitingTime ()
void saveConfig ()

Protected Member Functions

long getSequenceNumber ()

Detailed Description

MBean class for JDBCDataSource Management This MBean manages a connection manager and its associated pool. This couple represents the JOnAS data source implementation

Author:
Eric Hardesty JSR 77 (J2EE Management Standard)

Adriana Danes add support for persistent reconfiguration

Definition at line 40 of file JDBCDataSource.java.


Constructor & Destructor Documentation

org.objectweb.jonas.dbm.JDBCDataSource.JDBCDataSource String  objectName,
ConnectionManager  cm
 

Parameters:
objectName This MBean's OBJECT_NAME
cm Associated ConnectionManager reference

Definition at line 71 of file JDBCDataSource.java.

References org.objectweb.jonas.dbm.ConnectionManager.getDatasourceName(), org.objectweb.jonas.dbm.ConnectionManager.getPool(), and org.objectweb.jonas.dbm.ConnectionManager.pool.

Here is the call graph for this function:


Member Function Documentation

Integer org.objectweb.jonas.dbm.JDBCDataSource.getBusyMax  ) 
 

Returns:
number of busy connections

Definition at line 332 of file JDBCDataSource.java.

References org.objectweb.jonas.dbm.Pool.getBusyMaxRecent().

Here is the call graph for this function:

Integer org.objectweb.jonas.dbm.JDBCDataSource.getBusyMin  ) 
 

Returns:
number of busy connections

Definition at line 338 of file JDBCDataSource.java.

References org.objectweb.jonas.dbm.Pool.getBusyMinRecent().

Here is the call graph for this function:

Integer org.objectweb.jonas.dbm.JDBCDataSource.getConnectionFailures  ) 
 

Returns:
number of connection failures

Definition at line 314 of file JDBCDataSource.java.

References org.objectweb.jonas.dbm.Pool.getConnectionFailures().

Here is the call graph for this function:

Integer org.objectweb.jonas.dbm.JDBCDataSource.getConnectionLeaks  ) 
 

Returns:
number of connection leaks

Definition at line 320 of file JDBCDataSource.java.

References org.objectweb.jonas.dbm.Pool.getConnectionLeaks().

Here is the call graph for this function:

Integer org.objectweb.jonas.dbm.JDBCDataSource.getCurrentBusy  ) 
 

Returns:
number of busy connections

Definition at line 326 of file JDBCDataSource.java.

References org.objectweb.jonas.dbm.Pool.getCurrentBusy().

Here is the call graph for this function:

Integer org.objectweb.jonas.dbm.JDBCDataSource.getCurrentInTx  ) 
 

Returns:
number of connections used in transactions

Definition at line 344 of file JDBCDataSource.java.

References org.objectweb.jonas.dbm.Pool.getCurrentInTx().

Here is the call graph for this function:

Integer org.objectweb.jonas.dbm.JDBCDataSource.getCurrentOpened  ) 
 

Returns:
number of opened connections

Definition at line 350 of file JDBCDataSource.java.

References org.objectweb.jonas.dbm.Pool.getCurrentOpened().

Here is the call graph for this function:

Integer org.objectweb.jonas.dbm.JDBCDataSource.getCurrentWaiters  ) 
 

Returns:
current number of connection waiters

Definition at line 356 of file JDBCDataSource.java.

References org.objectweb.jonas.dbm.Pool.getCurrentWaiters().

Here is the call graph for this function:

String org.objectweb.jonas.dbm.JDBCDataSource.getDescription  ) 
 

Returns:
Description of this data source

Definition at line 113 of file JDBCDataSource.java.

References org.objectweb.jonas.dbm.ConnectionManager.getDataSourceDescription().

Here is the call graph for this function:

Integer org.objectweb.jonas.dbm.JDBCDataSource.getJdbcConnCheckLevel  ) 
 

Returns:
JDBC connection checking level

Definition at line 150 of file JDBCDataSource.java.

References org.objectweb.jonas.dbm.Pool.getCheckLevel().

Here is the call graph for this function:

Integer org.objectweb.jonas.dbm.JDBCDataSource.getJdbcConnMaxAge  ) 
 

Returns:
JDBC connections maximum age

Definition at line 168 of file JDBCDataSource.java.

References org.objectweb.jonas.dbm.Pool.getMaxAge().

Here is the call graph for this function:

String org.objectweb.jonas.dbm.JDBCDataSource.getJdbcDriver  ) 
 

Returns:
The OBJECT_NAME of the associated JDBCDriver MBean

Definition at line 83 of file JDBCDataSource.java.

Integer org.objectweb.jonas.dbm.JDBCDataSource.getJdbcMaxConnPool  ) 
 

Returns:
max maximum size of JDBC connection pool

Definition at line 185 of file JDBCDataSource.java.

References org.objectweb.jonas.dbm.Pool.getPoolMax().

Here is the call graph for this function:

Integer org.objectweb.jonas.dbm.JDBCDataSource.getJdbcMaxOpenTime  ) 
 

Returns:
maximum opening time of JDBC connections

Definition at line 203 of file JDBCDataSource.java.

References org.objectweb.jonas.dbm.Pool.getMaxOpenTime().

Here is the call graph for this function:

Integer org.objectweb.jonas.dbm.JDBCDataSource.getJdbcMaxWaiters  ) 
 

Returns:
maximum nb of waiters allowed

Definition at line 220 of file JDBCDataSource.java.

References org.objectweb.jonas.dbm.Pool.getMaxWaiters().

Here is the call graph for this function:

Integer org.objectweb.jonas.dbm.JDBCDataSource.getJdbcMaxWaitTime  ) 
 

Returns:
maximum time to wait for a connection, in seconds

Definition at line 238 of file JDBCDataSource.java.

References org.objectweb.jonas.dbm.Pool.getMaxWaitTime().

Here is the call graph for this function:

Integer org.objectweb.jonas.dbm.JDBCDataSource.getJdbcMinConnPool  ) 
 

Returns:
minimum size of connection pool

Definition at line 257 of file JDBCDataSource.java.

References org.objectweb.jonas.dbm.Pool.getPoolMin().

Here is the call graph for this function:

Integer org.objectweb.jonas.dbm.JDBCDataSource.getJdbcSamplingPeriod  ) 
 

Returns:
sampling period for refresching pool statistics

Definition at line 276 of file JDBCDataSource.java.

References org.objectweb.jonas.dbm.Pool.getSamplingPeriod().

Here is the call graph for this function:

String org.objectweb.jonas.dbm.JDBCDataSource.getJdbcTestStatement  ) 
 

Returns:
SQL query for JDBC connections test

Definition at line 295 of file JDBCDataSource.java.

References org.objectweb.jonas.dbm.Pool.getTestStatement().

Here is the call graph for this function:

String org.objectweb.jonas.dbm.JDBCDataSource.getJndiName  ) 
 

Returns:
The JNDI name

Definition at line 106 of file JDBCDataSource.java.

References org.objectweb.jonas.dbm.ConnectionManager.getDSName().

Here is the call graph for this function:

String org.objectweb.jonas.dbm.JDBCDataSource.getMapperName  ) 
 

Returns:
The mapper JORM for the database

Definition at line 141 of file JDBCDataSource.java.

References org.objectweb.jonas.dbm.ConnectionManager.getMapperName().

Here is the call graph for this function:

String org.objectweb.jonas.dbm.JDBCDataSource.getName  ) 
 

Return the current data source name. Returns the local attribute value (optimize call) - this value can't be changed, moreover, its used by private methods.

Returns:
The current data source name

Definition at line 99 of file JDBCDataSource.java.

Integer org.objectweb.jonas.dbm.JDBCDataSource.getOpenedCount  ) 
 

Returns:
number of opened physical JDBC connections

Definition at line 362 of file JDBCDataSource.java.

References org.objectweb.jonas.dbm.Pool.getOpenedCount().

Here is the call graph for this function:

Integer org.objectweb.jonas.dbm.JDBCDataSource.getRejectedFull  ) 
 

Returns:
number of open calls that were rejected because too many waiters

Definition at line 368 of file JDBCDataSource.java.

References org.objectweb.jonas.dbm.Pool.getRejectedFull().

Here is the call graph for this function:

Integer org.objectweb.jonas.dbm.JDBCDataSource.getRejectedOpen  ) 
 

Returns:
total number of open calls that were rejected

Definition at line 374 of file JDBCDataSource.java.

References org.objectweb.jonas.dbm.Pool.getRejectedOpen().

Here is the call graph for this function:

Integer org.objectweb.jonas.dbm.JDBCDataSource.getRejectedOther  ) 
 

Returns:
number of open calls that were rejected by an unknown reason

Definition at line 380 of file JDBCDataSource.java.

References org.objectweb.jonas.dbm.Pool.getRejectedOther().

Here is the call graph for this function:

Integer org.objectweb.jonas.dbm.JDBCDataSource.getRejectedTimeout  ) 
 

Returns:
number of open calls that were rejected by timeout

Definition at line 386 of file JDBCDataSource.java.

References org.objectweb.jonas.dbm.Pool.getRejectedTimeout().

Here is the call graph for this function:

long org.objectweb.jonas.dbm.JDBCDataSource.getSequenceNumber  )  [protected]
 

Gets the sequence number for reconfiguration opeartions

Returns:
the sequence number for reconfiguration operations

Definition at line 435 of file JDBCDataSource.java.

Referenced by org.objectweb.jonas.dbm.JDBCDataSource.saveConfig(), org.objectweb.jonas.dbm.JDBCDataSource.setJdbcConnCheckLevel(), org.objectweb.jonas.dbm.JDBCDataSource.setJdbcConnMaxAge(), org.objectweb.jonas.dbm.JDBCDataSource.setJdbcMaxConnPool(), org.objectweb.jonas.dbm.JDBCDataSource.setJdbcMaxOpenTime(), org.objectweb.jonas.dbm.JDBCDataSource.setJdbcMaxWaiters(), org.objectweb.jonas.dbm.JDBCDataSource.setJdbcMaxWaitTime(), org.objectweb.jonas.dbm.JDBCDataSource.setJdbcMinConnPool(), org.objectweb.jonas.dbm.JDBCDataSource.setJdbcSamplingPeriod(), and org.objectweb.jonas.dbm.JDBCDataSource.setJdbcTestStatement().

Integer org.objectweb.jonas.dbm.JDBCDataSource.getServedOpen  ) 
 

Returns:
number of xa connection served

Definition at line 392 of file JDBCDataSource.java.

References org.objectweb.jonas.dbm.Pool.getServedOpen().

Here is the call graph for this function:

String org.objectweb.jonas.dbm.JDBCDataSource.getUrl  ) 
 

Returns:
The JDBC URL for the database

Definition at line 120 of file JDBCDataSource.java.

References org.objectweb.jonas.dbm.ConnectionManager.getUrl().

Here is the call graph for this function:

String org.objectweb.jonas.dbm.JDBCDataSource.getUserName  ) 
 

Returns:
The user name for connection to the database

Definition at line 127 of file JDBCDataSource.java.

References org.objectweb.jonas.dbm.ConnectionManager.getUserName().

Here is the call graph for this function:

String org.objectweb.jonas.dbm.JDBCDataSource.getUserPassword  ) 
 

Returns:
The password for connection to the database

Definition at line 134 of file JDBCDataSource.java.

References org.objectweb.jonas.dbm.ConnectionManager.getPassword().

Here is the call graph for this function:

Integer org.objectweb.jonas.dbm.JDBCDataSource.getWaiterCount  ) 
 

Returns:
total number of waiters since datasource creation.

Definition at line 398 of file JDBCDataSource.java.

References org.objectweb.jonas.dbm.Pool.getWaiterCount().

Here is the call graph for this function:

Integer org.objectweb.jonas.dbm.JDBCDataSource.getWaitersHigh  ) 
 

Returns:
Maximum number of waiters since datasource creation.

Definition at line 404 of file JDBCDataSource.java.

References org.objectweb.jonas.dbm.Pool.getWaitersHigh().

Here is the call graph for this function:

Integer org.objectweb.jonas.dbm.JDBCDataSource.getWaitersHighRecent  ) 
 

Returns:
Maximum nb of waiters in last sampling period

Definition at line 410 of file JDBCDataSource.java.

References org.objectweb.jonas.dbm.Pool.getWaitersHighRecent().

Here is the call graph for this function:

Long org.objectweb.jonas.dbm.JDBCDataSource.getWaitingHigh  ) 
 

Returns:
Maximum waiting time (millisec) since datasource creation.

Definition at line 416 of file JDBCDataSource.java.

References org.objectweb.jonas.dbm.Pool.getWaitingHigh().

Here is the call graph for this function:

Long org.objectweb.jonas.dbm.JDBCDataSource.getWaitingHighRecent  ) 
 

Returns:
Maximum waiting time (millisec) in last sampling period

Definition at line 422 of file JDBCDataSource.java.

References org.objectweb.jonas.dbm.Pool.getWaitingHighRecent().

Here is the call graph for this function:

Long org.objectweb.jonas.dbm.JDBCDataSource.getWaitingTime  ) 
 

Returns:
Total waiting time (millisec) since datasource creation.

Definition at line 428 of file JDBCDataSource.java.

References org.objectweb.jonas.dbm.Pool.getWaitingTime().

Here is the call graph for this function:

void org.objectweb.jonas.dbm.JDBCDataSource.saveConfig  ) 
 

save updated configuration

Definition at line 442 of file JDBCDataSource.java.

References org.objectweb.jonas.dbm.JDBCDataSource.getSequenceNumber().

Here is the call graph for this function:

void org.objectweb.jonas.dbm.JDBCDataSource.setJdbcConnCheckLevel Integer  level  ) 
 

Sets the JDBC connection checking level

Parameters:
level connection level

Definition at line 157 of file JDBCDataSource.java.

References org.objectweb.jonas.dbm.JDBCDataSource.getSequenceNumber(), and org.objectweb.jonas.dbm.Pool.setCheckLevel().

Here is the call graph for this function:

void org.objectweb.jonas.dbm.JDBCDataSource.setJdbcConnMaxAge Integer  mn  ) 
 

Parameters:
mn JDBC connections maximum age

Definition at line 174 of file JDBCDataSource.java.

References org.objectweb.jonas.dbm.JDBCDataSource.getSequenceNumber(), and org.objectweb.jonas.dbm.Pool.setMaxAge().

Here is the call graph for this function:

void org.objectweb.jonas.dbm.JDBCDataSource.setJdbcDriver String  jdbcDriverObjectName  ) 
 

Parameters:
jdbcDriverObjectName OBJECT_NAME of the associated JDBCDriver MBean

Definition at line 90 of file JDBCDataSource.java.

Referenced by org.objectweb.jonas.dbm.DataBaseServiceImpl.createDataSource().

void org.objectweb.jonas.dbm.JDBCDataSource.setJdbcMaxConnPool Integer  max  ) 
 

Parameters:
max maximum size of JDBC connection pool

Definition at line 191 of file JDBCDataSource.java.

References org.objectweb.jonas.dbm.JDBCDataSource.getSequenceNumber(), and org.objectweb.jonas.dbm.Pool.setPoolMax().

Here is the call graph for this function:

void org.objectweb.jonas.dbm.JDBCDataSource.setJdbcMaxOpenTime Integer  mn  ) 
 

Parameters:
mn maximum opening time in minutes for JDBC connections

Definition at line 209 of file JDBCDataSource.java.

References org.objectweb.jonas.dbm.JDBCDataSource.getSequenceNumber(), and org.objectweb.jonas.dbm.Pool.setMaxOpenTime().

Here is the call graph for this function:

void org.objectweb.jonas.dbm.JDBCDataSource.setJdbcMaxWaiters Integer  max  ) 
 

Parameters:
max maximum nb of waiters allowed

Definition at line 226 of file JDBCDataSource.java.

References org.objectweb.jonas.dbm.JDBCDataSource.getSequenceNumber(), and org.objectweb.jonas.dbm.Pool.setMaxWaiters().

Here is the call graph for this function:

void org.objectweb.jonas.dbm.JDBCDataSource.setJdbcMaxWaitTime Integer  max  ) 
 

Parameters:
max maximum time to wait for a connection, in seconds

Definition at line 245 of file JDBCDataSource.java.

References org.objectweb.jonas.dbm.JDBCDataSource.getSequenceNumber(), and org.objectweb.jonas.dbm.Pool.setMaxWaitTime().

Here is the call graph for this function:

void org.objectweb.jonas.dbm.JDBCDataSource.setJdbcMinConnPool Integer  min  ) 
 

MBean method allowing to set the minimum size of connection pool

Parameters:
min minimum size of connection pool

Definition at line 264 of file JDBCDataSource.java.

References org.objectweb.jonas.dbm.JDBCDataSource.getSequenceNumber(), and org.objectweb.jonas.dbm.Pool.setPoolMin().

Here is the call graph for this function:

void org.objectweb.jonas.dbm.JDBCDataSource.setJdbcSamplingPeriod Integer  i  ) 
 

Parameters:
i sampling period for refresching pool statistics

Definition at line 283 of file JDBCDataSource.java.

References org.objectweb.jonas.dbm.JDBCDataSource.getSequenceNumber(), and org.objectweb.jonas.dbm.Pool.setSamplingPeriod().

Here is the call graph for this function:

void org.objectweb.jonas.dbm.JDBCDataSource.setJdbcTestStatement String  test  ) 
 

Parameters:
test SQL query for JDBC connections test

Definition at line 301 of file JDBCDataSource.java.

References org.objectweb.jonas.dbm.JDBCDataSource.getSequenceNumber(), and org.objectweb.jonas.dbm.Pool.setTestStatement().

Here is the call graph for this function:


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