| |
|
| org.objectweb.jonas.management.j2eemanagement.J2EEManagedObject org.objectweb.jonas.dbm.JDBCDataSource
JDBCDataSource | public class JDBCDataSource extends J2EEManagedObject (Code) | | 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) author: Adriana Danes add support for persistent reconfiguration |
JDBCDataSource | public JDBCDataSource(String objectName, ConnectionManager cm)(Code) | | Parameters: objectName - This MBean's OBJECT_NAME Parameters: cm - Associated ConnectionManager reference |
getBusyMax | public Integer getBusyMax()(Code) | | number of busy connections |
getBusyMin | public Integer getBusyMin()(Code) | | number of busy connections |
getConnectionFailures | public Integer getConnectionFailures()(Code) | | number of connection failures |
getConnectionLeaks | public Integer getConnectionLeaks()(Code) | | number of connection leaks |
getCurrentBusy | public Integer getCurrentBusy()(Code) | | number of busy connections |
getCurrentInTx | public Integer getCurrentInTx()(Code) | | number of connections used in transactions |
getCurrentOpened | public Integer getCurrentOpened()(Code) | | number of opened connections |
getCurrentWaiters | public Integer getCurrentWaiters()(Code) | | current number of connection waiters |
getDescription | public String getDescription()(Code) | | Description of this data source |
getJdbcConnCheckLevel | public Integer getJdbcConnCheckLevel()(Code) | | JDBC connection checking level |
getJdbcConnMaxAge | public Integer getJdbcConnMaxAge()(Code) | | JDBC connections maximum age |
getJdbcDriver | public String getJdbcDriver()(Code) | | The OBJECT_NAME of the associated JDBCDriver MBean |
getJdbcMaxConnPool | public Integer getJdbcMaxConnPool()(Code) | | max maximum size of JDBC connection pool |
getJdbcMaxOpenTime | public Integer getJdbcMaxOpenTime()(Code) | | maximum opening time of JDBC connections |
getJdbcMaxWaitTime | public Integer getJdbcMaxWaitTime()(Code) | | maximum time to wait for a connection, in seconds |
getJdbcMaxWaiters | public Integer getJdbcMaxWaiters()(Code) | | maximum nb of waiters allowed |
getJdbcMinConnPool | public Integer getJdbcMinConnPool()(Code) | | minimum size of connection pool |
getJdbcPstmtMax | public Integer getJdbcPstmtMax()(Code) | | PreparedStatement cache size |
getJdbcSamplingPeriod | public Integer getJdbcSamplingPeriod()(Code) | | sampling period for refresching pool statistics |
getJdbcTestStatement | public String getJdbcTestStatement()(Code) | | SQL query for JDBC connections test |
getMapperName | public String getMapperName()(Code) | | The mapper JORM for the database |
getName | public String getName()(Code) | | 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.
The current data source name |
getOpenedCount | public Integer getOpenedCount()(Code) | | number of opened physical JDBC connections |
getRejectedFull | public Integer getRejectedFull()(Code) | | number of open calls that were rejected because too many waiters |
getRejectedOpen | public Integer getRejectedOpen()(Code) | | total number of open calls that were rejected |
getRejectedOther | public Integer getRejectedOther()(Code) | | number of open calls that were rejected by an unknown reason |
getRejectedTimeout | public Integer getRejectedTimeout()(Code) | | number of open calls that were rejected by timeout |
getSequenceNumber | protected long getSequenceNumber()(Code) | | Gets the sequence number for reconfiguration opeartions
the sequence number for reconfiguration operations |
getServedOpen | public Integer getServedOpen()(Code) | | number of xa connection served |
getUrl | public String getUrl()(Code) | | The JDBC URL for the database |
getUserName | public String getUserName()(Code) | | The user name for connection to the database |
getUserPassword | public String getUserPassword()(Code) | | The password for connection to the database |
getWaiterCount | public Integer getWaiterCount()(Code) | | total number of waiters since datasource creation. |
getWaitersHigh | public Integer getWaitersHigh()(Code) | | Maximum number of waiters since datasource creation. |
getWaitersHighRecent | public Integer getWaitersHighRecent()(Code) | | Maximum nb of waiters in last sampling period |
getWaitingHigh | public Long getWaitingHigh()(Code) | | Maximum waiting time (millisec) since datasource creation. |
getWaitingHighRecent | public Long getWaitingHighRecent()(Code) | | Maximum waiting time (millisec) in last sampling period |
getWaitingTime | public Long getWaitingTime()(Code) | | Total waiting time (millisec) since datasource creation. |
saveConfig | public void saveConfig()(Code) | | save updated configuration
|
setJdbcConnCheckLevel | public void setJdbcConnCheckLevel(Integer level)(Code) | | Sets the JDBC connection checking level
Parameters: level - connection level |
setJdbcConnMaxAge | public void setJdbcConnMaxAge(Integer mn)(Code) | | Parameters: mn - JDBC connections maximum age |
setJdbcDriver | public void setJdbcDriver(String jdbcDriverObjectName)(Code) | | Parameters: jdbcDriverObjectName - OBJECT_NAME of the associated JDBCDriver MBean |
setJdbcMaxConnPool | public void setJdbcMaxConnPool(Integer max)(Code) | | Parameters: max - maximum size of JDBC connection pool |
setJdbcMaxOpenTime | public void setJdbcMaxOpenTime(Integer mn)(Code) | | Parameters: mn - maximum opening time in minutes for JDBC connections |
setJdbcMaxWaitTime | public void setJdbcMaxWaitTime(Integer max)(Code) | | Parameters: max - maximum time to wait for a connection, in seconds |
setJdbcMaxWaiters | public void setJdbcMaxWaiters(Integer max)(Code) | | Parameters: max - maximum nb of waiters allowed |
setJdbcMinConnPool | public void setJdbcMinConnPool(Integer min)(Code) | | MBean method allowing to set the minimum size of connection pool
Parameters: min - minimum size of connection pool |
setJdbcPstmtMax | public void setJdbcPstmtMax(Integer max)(Code) | | Parameters: max - PreparedStatement cache size |
setJdbcSamplingPeriod | public void setJdbcSamplingPeriod(Integer i)(Code) | | Parameters: i - sampling period for refresching pool statistics |
setJdbcTestStatement | public String setJdbcTestStatement(String test)(Code) | | Parameters: test - SQL query for JDBC connection test the test statement if the test succeeded, an error message otherwise |
|
|
|