jrun.sql.management
Class DataSourceService
jrunx.kernel.ServiceAdapter
|
+--jrunx.pool.management.ObjectPoolService
|
+--jrun.sql.management.DataSourceService
- All Implemented Interfaces:
- DataSourceServiceMBean, ObjectPoolServiceMBean, javax.naming.Referenceable, java.io.Serializable, Service, ServiceMBean
- public class DataSourceService
- extends ObjectPoolService
- implements DataSourceServiceMBean
An MBean defining the manageable attributes of a JDBCPool
and DataSource.
- Author:
- PS Neville
- See Also:
- Serialized Form
| Fields inherited from class jrunx.kernel.ServiceAdapter |
DEFAULT_DEACTIVATED, DEFAULT_DOMAIN, DOMAIN_NAME_SEPARATOR, DOMAIN_NAME_SUFFIX, domainName, jndiBindable, LOGGER_CACHE_TIME, SCHEDULER_SERVICE, SECURITY_MANAGER, status, TRANSACTION_MANAGER |
| Methods inherited from class jrunx.pool.management.ObjectPoolService |
getInitialObjects, getLogFile, getMaximumSize, getMinimumSize, getName, getObjectTimeout, getShrinkBy, getSkimmerFrequency, getUserTimeout, isDebugging, isDisablePooling, isMaximumSoft, setDebugging, setDisablePooling, setInitialObjects, setLogFile, setMaximumSize, setMaximumSoft, setMinimumSize, setName, setObjectTimeout, setShrinkBy, setSkimmerFrequency, setUserTimeout |
| Methods inherited from class jrunx.kernel.ServiceAdapter |
bind, destroy, findObjectInstance, findObjectInstance, findObjectInstance, getBindToJNDI, getDeactivated, getDomainName, getDomainSearchPath, getJRunService, getLogger, getParentService, getReference, getResourceManager, getServerName, getServerProperties, getStatus, init, invokeMethod, isInPartition, isPartition, lookup, postDeregister, postRegister, preDeregister, preRegister, requestServer, scheduleRunnable, setBindToJNDI, setDeactivated, setDomainName, setParentService, toString, unbind, unscheduleRunnable, updateStatus |
| Methods inherited from interface jrunx.pool.management.ObjectPoolServiceMBean |
getInitialObjects, getLogFile, getMaximumSize, getMinimumSize, getName, getObjectTimeout, getShrinkBy, getSkimmerFrequency, getUserTimeout, isDebugging, isDisablePooling, isMaximumSoft, setDebugging, setDisablePooling, setInitialObjects, setLogFile, setMaximumSize, setMaximumSoft, setMinimumSize, setName, setObjectTimeout, setShrinkBy, setSkimmerFrequency, setUserTimeout |
| Methods inherited from interface jrunx.kernel.ServiceMBean |
bind, getBindToJNDI, getDeactivated, getDomainName, getJRunService, getLogger, getParentService, getServerName, requestServer, setBindToJNDI, setDeactivated, setDomainName, setParentService, unbind |
DataSourceService
public DataSourceService()
DataSourceService
public DataSourceService(JDBCPoolMetaData metadata)
start
public void start()
throws java.lang.Exception
- Description copied from class:
ServiceAdapter
- Every service other than mere data collections should start
- Specified by:
start in interface Service- Overrides:
start in class ServiceAdapter
stop
public void stop()
throws java.lang.Exception
- Description copied from class:
ServiceAdapter
- Every service other than mere data collections should stop
- Specified by:
stop in interface Service- Overrides:
stop in class ServiceAdapter
isRunning
public boolean isRunning()
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
getDescription
public java.lang.String getDescription()
- Specified by:
getDescription in interface DataSourceServiceMBean
setDescription
public void setDescription(java.lang.String desc)
- Specified by:
setDescription 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()
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
getPoolStatements
public boolean getPoolStatements()
- Specified by:
getPoolStatements in interface DataSourceServiceMBean
setPoolStatements
public void setPoolStatements(boolean b)
- Specified by:
setPoolStatements 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
getTransactionDomain
public java.lang.String getTransactionDomain()
- Specified by:
getTransactionDomain in interface DataSourceServiceMBean
setTransactionDomain
public void setTransactionDomain(java.lang.String txdomain)
- Specified by:
setTransactionDomain in interface DataSourceServiceMBean
getIsolationLevel
public java.lang.String getIsolationLevel()
- Specified by:
getIsolationLevel in interface DataSourceServiceMBean
setIsolationLevel
public void setIsolationLevel(java.lang.String s)
- Specified by:
setIsolationLevel 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
setValidationQuery
public void setValidationQuery(java.lang.String s)
getValidationQuery
public java.lang.String getValidationQuery()
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
isEncrypted
public boolean isEncrypted()
- Specified by:
isEncrypted in interface DataSourceServiceMBean
setEncrypted
public void setEncrypted(boolean encrypted)
- Specified by:
setEncrypted in interface DataSourceServiceMBean
getEncryptionClass
public java.lang.String getEncryptionClass()
- Specified by:
getEncryptionClass in interface DataSourceServiceMBean
setEncryptionClass
public void setEncryptionClass(java.lang.String encClass)
- Specified by:
setEncryptionClass in interface DataSourceServiceMBean
persistXML
public void persistXML()
throws java.rmi.RemoteException
- Specified by:
persistXML in interface DataSourceServiceMBean
Copyright � 2002 Macromedia Corporation. All Rights Reserved.