com.codestudio.management
Class DataSourceService
java.lang.Object
|
+--javax.management.NotificationBroadcasterSupport
|
+--com.codestudio.management.ObjectPoolService
|
+--com.codestudio.management.DataSourceService
- All Implemented Interfaces:
- DataSourceServiceMBean, javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, ObjectPoolServiceMBean, java.io.Serializable
- public class DataSourceService
- extends ObjectPoolService
- implements DataSourceServiceMBean, javax.management.MBeanRegistration
An MBean defining the manageable attributes of a JDBCPool
and PoolManDataSource.
- See Also:
- Serialized Form
Methods inherited from class com.codestudio.management.ObjectPoolService |
getInitialObjects, getLogFile, getMaximumSize, getMinimumSize, getName, getObjectTimeout, getShrinkBy, getSkimmerFrequency, getUserTimeout, isDebugging, isMaximumSoft, postDeregister, postRegister, preDeregister, preRegister, setDebugging, setInitialObjects, setLogFile, setMaximumSize, setMaximumSoft, setMinimumSize, setName, setObjectTimeout, setShrinkBy, setSkimmerFrequency, setUserTimeout |
Methods inherited from class javax.management.NotificationBroadcasterSupport |
addNotificationListener, getNotificationInfo, removeNotificationListener, sendNotification |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.codestudio.management.ObjectPoolServiceMBean |
getInitialObjects, getLogFile, getMaximumSize, getMinimumSize, getName, getObjectTimeout, getShrinkBy, getSkimmerFrequency, getUserTimeout, isDebugging, isMaximumSoft, setDebugging, setInitialObjects, setLogFile, setMaximumSize, setMaximumSoft, setMinimumSize, setName, setObjectTimeout, setShrinkBy, setSkimmerFrequency, setUserTimeout |
Methods inherited from interface javax.management.MBeanRegistration |
postDeregister, postRegister, preDeregister, preRegister |
DataSourceService
public DataSourceService()
start
public void start()
throws java.lang.Exception
- Specified by:
start
in interface ObjectPoolServiceMBean
- Overrides:
start
in class ObjectPoolService
stop
public void stop()
throws java.lang.Exception
- Specified by:
stop
in interface ObjectPoolServiceMBean
- Overrides:
stop
in class ObjectPoolService
isRunning
public boolean isRunning()
- Overrides:
isRunning
in class ObjectPoolService
getDriver
public java.lang.String getDriver()
- Specified by:
getDriver
in interface DataSourceServiceMBean
setDriver
public void setDriver(java.lang.String driver)
- Specified by:
setDriver
in interface DataSourceServiceMBean
getURL
public java.lang.String getURL()
- Specified by:
getURL
in interface DataSourceServiceMBean
setURL
public void setURL(java.lang.String URL)
- Specified by:
setURL
in interface DataSourceServiceMBean
getUserName
public java.lang.String getUserName()
- Specified by:
getUserName
in interface DataSourceServiceMBean
setUserName
public void setUserName(java.lang.String username)
- Specified by:
setUserName
in interface DataSourceServiceMBean
getPassword
public java.lang.String getPassword()
- Specified by:
getPassword
in interface DataSourceServiceMBean
setPassword
public void setPassword(java.lang.String password)
- Specified by:
setPassword
in interface DataSourceServiceMBean
getDbname
public java.lang.String getDbname()
- Specified by:
getDbname
in interface DataSourceServiceMBean
setDbname
public void setDbname(java.lang.String n)
- Specified by:
setDbname
in interface DataSourceServiceMBean
getJNDIName
public java.lang.String getJNDIName()
- Specified by:
getJNDIName
in interface DataSourceServiceMBean
setJNDIName
public void setJNDIName(java.lang.String n)
- Specified by:
setJNDIName
in interface DataSourceServiceMBean
isNativeResults
public boolean isNativeResults()
- Specified by:
isNativeResults
in interface DataSourceServiceMBean
setNativeResults
public void setNativeResults(boolean b)
- Specified by:
setNativeResults
in interface DataSourceServiceMBean
isDataSourceDeployed
public boolean isDataSourceDeployed()
isPoolPreparedStatements
public boolean isPoolPreparedStatements()
- Specified by:
isPoolPreparedStatements
in interface DataSourceServiceMBean
setPoolPreparedStatements
public void setPoolPreparedStatements(boolean poolingPreparedStatements)
- Specified by:
setPoolPreparedStatements
in interface DataSourceServiceMBean
getValidationQuery
public java.lang.String getValidationQuery()
- Specified by:
getValidationQuery
in interface DataSourceServiceMBean
setValidationQuery
public void setValidationQuery(java.lang.String sql)
- Specified by:
setValidationQuery
in interface DataSourceServiceMBean
getInitialPoolSQL
public java.lang.String getInitialPoolSQL()
- Specified by:
getInitialPoolSQL
in interface DataSourceServiceMBean
setInitialPoolSQL
public void setInitialPoolSQL(java.lang.String sql)
- Specified by:
setInitialPoolSQL
in interface DataSourceServiceMBean
getInitialConnectionSQL
public java.lang.String getInitialConnectionSQL()
- Specified by:
getInitialConnectionSQL
in interface DataSourceServiceMBean
setInitialConnectionSQL
public void setInitialConnectionSQL(java.lang.String sql)
- Specified by:
setInitialConnectionSQL
in interface DataSourceServiceMBean
isRemoveOnExceptions
public boolean isRemoveOnExceptions()
- Specified by:
isRemoveOnExceptions
in interface DataSourceServiceMBean
setRemoveOnExceptions
public void setRemoveOnExceptions(boolean b)
- Specified by:
setRemoveOnExceptions
in interface DataSourceServiceMBean
getInitialConnections
public int getInitialConnections()
- Specified by:
getInitialConnections
in interface DataSourceServiceMBean
setInitialConnections
public void setInitialConnections(int n)
- Specified by:
setInitialConnections
in interface DataSourceServiceMBean
getConnectionTimeout
public int getConnectionTimeout()
- Specified by:
getConnectionTimeout
in interface DataSourceServiceMBean
setConnectionTimeout
public void setConnectionTimeout(int n)
- Specified by:
setConnectionTimeout
in interface DataSourceServiceMBean
getTransactionTimeout
public int getTransactionTimeout()
- Specified by:
getTransactionTimeout
in interface DataSourceServiceMBean
setTransactionTimeout
public void setTransactionTimeout(int n)
- Specified by:
setTransactionTimeout
in interface DataSourceServiceMBean
getTxIsolationLevel
public java.lang.String getTxIsolationLevel()
- Specified by:
getTxIsolationLevel
in interface DataSourceServiceMBean
setTxIsolationLevel
public void setTxIsolationLevel(java.lang.String s)
- Specified by:
setTxIsolationLevel
in interface DataSourceServiceMBean
isCacheEnabled
public boolean isCacheEnabled()
- Specified by:
isCacheEnabled
in interface DataSourceServiceMBean
setCacheEnabled
public void setCacheEnabled(boolean b)
- Specified by:
setCacheEnabled
in interface DataSourceServiceMBean
getCacheSize
public int getCacheSize()
- Specified by:
getCacheSize
in interface DataSourceServiceMBean
setCacheSize
public void setCacheSize(int n)
- Specified by:
setCacheSize
in interface DataSourceServiceMBean
getCacheRefreshInterval
public int getCacheRefreshInterval()
- Specified by:
getCacheRefreshInterval
in interface DataSourceServiceMBean
setCacheRefreshInterval
public void setCacheRefreshInterval(int seconds)
- Specified by:
setCacheRefreshInterval
in interface DataSourceServiceMBean
getAvailableConnections
public int getAvailableConnections()
- Specified by:
getAvailableConnections
in interface DataSourceServiceMBean
getUnavailableConnections
public int getUnavailableConnections()
- Specified by:
getUnavailableConnections
in interface DataSourceServiceMBean
getTotalConnections
public int getTotalConnections()
- Specified by:
getTotalConnections
in interface DataSourceServiceMBean
Copyright © 1999-2001 The Code Studio. All Rights Reserved.