org.objectweb.jonas.dbm
Class JonasXAPoolDataSource

java.lang.Object
  |
  +--org.enhydra.jdbc.core.CoreDataSource
        |
        +--org.enhydra.jdbc.pool.StandardPoolDataSource
              |
              +--org.enhydra.jdbc.pool.StandardXAPoolDataSource
                    |
                    +--org.objectweb.jonas.dbm.JonasXAPoolDataSource
All Implemented Interfaces:
javax.sql.ConnectionEventListener, javax.sql.DataSource, java.util.EventListener, JmxDataSourceMBean, JonasXAPoolDataSourceMBean, javax.naming.spi.ObjectFactory, PoolHelper, javax.naming.Referenceable, java.io.Serializable

public class JonasXAPoolDataSource
extends StandardXAPoolDataSource
implements javax.naming.Referenceable, JonasXAPoolDataSourceMBean

See Also:
Serialized Form

Field Summary
 java.lang.String XAFactory
           
 
Fields inherited from class org.enhydra.jdbc.pool.StandardXAPoolDataSource
transactionManager, xads
 
Fields inherited from class org.enhydra.jdbc.pool.StandardPoolDataSource
cpds, dataSourceName, ictx, onOff, pool
 
Fields inherited from class org.enhydra.jdbc.core.CoreDataSource
logWriter, password, user
 
Constructor Summary
JonasXAPoolDataSource()
           
 
Method Summary
 java.lang.String getClassName()
          MBean method:
 java.lang.Integer getCurrentNumberOfJDBCConnectionOpen()
          MBean method:
 java.lang.String getDataSourceDescription()
          MBean Method:
 java.lang.String getDataSourceFactory()
          MBean method:
 java.lang.String getDataSourceType()
          return the type of this data source
 java.lang.String getDataSourceXADataName()
          MBean method:
 java.lang.String getDSName()
          MBean method:
 java.lang.Integer getJDBCConnCheckLevel()
          MBean method:
 java.lang.Integer getJDBCConnMaxAge()
          MBean method:
 java.lang.Integer getJDBCDeadLockPool()
          MBean method:
 java.lang.Integer getJDBCLoopWaitPool()
          MBean method:
 java.lang.Integer getJDBCMaxConnPool()
          MBean method:
 java.lang.Integer getJDBCMinConnPool()
          MBean method:
 java.lang.Integer getJDBCSleepTimeOut()
          MBean method:
 java.lang.String getJDBCTestStatement()
          MBean method:
 javax.naming.Reference getReference()
          Retrieves the Reference of this object.
 java.lang.String getUrl()
          MBean method:
 java.lang.String getUserName()
          MBean method:
 java.lang.String getXAFactory()
           
 void setClassName(java.lang.String className)
          Management method: set connection className
 void setDataSourceDescription(java.lang.String dsDesc)
          Management Method:
 void setDSName(java.lang.String dsName)
          MBean method:
 void setJDBCConnCheckLevel(java.lang.Integer level)
          MBean method:
 void setJDBCConnMaxAge(java.lang.Integer age)
          MBean method:
 void setJDBCDeadLockPool(java.lang.Integer size)
          MBean method:
 void setJDBCLoopWaitPool(java.lang.Integer size)
          MBean method:
 void setJDBCMaxConnPool(java.lang.Integer max)
          MBean method:
 void setJDBCMinConnPool(java.lang.Integer min)
          MBean method:
 void setJDBCSleepTimeOut(java.lang.Integer timeOut)
          MBean method: do nothing
 void setJDBCTestStatement(java.lang.String test)
          MBean method:
 void setUrl(java.lang.String url)
          Management method: set connection url
 void setXAFactory(java.lang.String xafactory)
           
 
Methods inherited from class org.enhydra.jdbc.pool.StandardXAPoolDataSource
connectionClosed, create, getDataSource, initContext, setDataSource, setTransactionManager
 
Methods inherited from class org.enhydra.jdbc.pool.StandardPoolDataSource
checkThisObject, connectionErrorOccurred, create, expire, getCheckLevelObject, getConnection, getConnection, getDataSourceName, getDeadLockMaxWait, getDeadLockRetryWait, getGeneration, getJdbcTestStmt, getLifeTime, getLockedObjectCount, getLogWriter, getMaxSize, getMinSize, getSleepTime, getUnlockedObjectCount, isGC, setCheckLevelObject, setDataSourceName, setDeadLockMaxWait, setDeadLockRetryWait, setDebug, setGC, setGeneration, setJdbcTestStmt, setLifeTime, setLogWriter, setMaxSize, setMinSize, setSleepTime, setThreadFactory, shutdown, stopPool, testThisObject, toString
 
Methods inherited from class org.enhydra.jdbc.core.CoreDataSource
getDescription, getLoginTimeout, getObjectInstance, getPassword, getThreadFactory, getUser, isDebug, isVerbose, log, setDescription, setLoginTimeout, setPassword, setUser, setVerbose
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.objectweb.jonas.dbm.JmxDataSourceMBean
getPassword
 
Methods inherited from interface javax.sql.DataSource
getLoginTimeout, setLoginTimeout
 

Field Detail

XAFactory

public java.lang.String XAFactory
Constructor Detail

JonasXAPoolDataSource

public JonasXAPoolDataSource()
Method Detail

getReference

public javax.naming.Reference getReference()
                                    throws javax.naming.NamingException
Description copied from class: StandardXAPoolDataSource
Retrieves the Reference of this object. Used at binding time by JNDI to build a reference on this object.
Specified by:
getReference in interface javax.naming.Referenceable
Overrides:
getReference in class StandardXAPoolDataSource
Following copied from class: org.enhydra.jdbc.pool.StandardXAPoolDataSource
Returns:
The non-null Reference of this object.
Throws:
javax.naming.NamingException - If a naming exception was encountered while retrieving the reference.

getCurrentNumberOfJDBCConnectionOpen

public java.lang.Integer getCurrentNumberOfJDBCConnectionOpen()
MBean method:
Specified by:
getCurrentNumberOfJDBCConnectionOpen in interface JmxDataSourceMBean
Returns:
Integer number of open connection in this ds

getUserName

public java.lang.String getUserName()
MBean method:
Specified by:
getUserName in interface JmxDataSourceMBean
Returns:
User of this Connection (from org.enhydra.jdbc.core.CoreDataSource)

setUrl

public void setUrl(java.lang.String url)
Management method: set connection url
Parameters:
url - of this connection

getUrl

public java.lang.String getUrl()
MBean method:
Specified by:
getUrl in interface JmxDataSourceMBean
Returns:
url of this connection

setClassName

public void setClassName(java.lang.String className)
Management method: set connection className
Parameters:
className - of this connection

getClassName

public java.lang.String getClassName()
MBean method:
Specified by:
getClassName in interface JmxDataSourceMBean
Returns:
class of this datasource

setDSName

public void setDSName(java.lang.String dsName)
MBean method:
Parameters:
datasource - name

getDSName

public java.lang.String getDSName()
MBean method:
Specified by:
getDSName in interface JmxDataSourceMBean
Returns:
datasource name

getDataSourceFactory

public java.lang.String getDataSourceFactory()
MBean method:
Specified by:
getDataSourceFactory in interface JmxDataSourceMBean
Returns:
the data source factory none or JonasStandardXADataSource

getDataSourceXADataName

public java.lang.String getDataSourceXADataName()
MBean method:
Specified by:
getDataSourceXADataName in interface JmxDataSourceMBean
Returns:
the DataSourceXAName

getJDBCConnCheckLevel

public java.lang.Integer getJDBCConnCheckLevel()
MBean method:
Specified by:
getJDBCConnCheckLevel in interface JmxDataSourceMBean
Returns:
connection level

setJDBCConnCheckLevel

public void setJDBCConnCheckLevel(java.lang.Integer level)
MBean method:
Specified by:
setJDBCConnCheckLevel in interface JmxDataSourceMBean
Parameters:
connection - level

getJDBCConnMaxAge

public java.lang.Integer getJDBCConnMaxAge()
MBean method:
Specified by:
getJDBCConnMaxAge in interface JmxDataSourceMBean
Returns:
connection max age

setJDBCConnMaxAge

public void setJDBCConnMaxAge(java.lang.Integer age)
MBean method:
Specified by:
setJDBCConnMaxAge in interface JmxDataSourceMBean
Parameters:
connection - max age

getJDBCTestStatement

public java.lang.String getJDBCTestStatement()
MBean method:
Specified by:
getJDBCTestStatement in interface JmxDataSourceMBean
Returns:
test statement

setJDBCTestStatement

public void setJDBCTestStatement(java.lang.String test)
MBean method:
Specified by:
setJDBCTestStatement in interface JmxDataSourceMBean
Parameters:
test - statement

getJDBCMinConnPool

public java.lang.Integer getJDBCMinConnPool()
MBean method:
Specified by:
getJDBCMinConnPool in interface JmxDataSourceMBean
Returns:
connection pool min

setJDBCMinConnPool

public void setJDBCMinConnPool(java.lang.Integer min)
MBean method:
Specified by:
setJDBCMinConnPool in interface JmxDataSourceMBean
Parameters:
min - for connection pool

getJDBCMaxConnPool

public java.lang.Integer getJDBCMaxConnPool()
MBean method:
Specified by:
getJDBCMaxConnPool in interface JmxDataSourceMBean
Returns:
connection pool max

setJDBCMaxConnPool

public void setJDBCMaxConnPool(java.lang.Integer max)
MBean method:
Specified by:
setJDBCMaxConnPool in interface JmxDataSourceMBean
Parameters:
max - for connection pool

getJDBCSleepTimeOut

public java.lang.Integer getJDBCSleepTimeOut()
MBean method:
Specified by:
getJDBCSleepTimeOut in interface JmxDataSourceMBean
Returns:
Integer sleep Time out

setJDBCSleepTimeOut

public void setJDBCSleepTimeOut(java.lang.Integer timeOut)
MBean method: do nothing
Specified by:
setJDBCSleepTimeOut in interface JmxDataSourceMBean
Parameters:
Integer - sleep Time out

getJDBCDeadLockPool

public java.lang.Integer getJDBCDeadLockPool()
MBean method:
Specified by:
getJDBCDeadLockPool in interface JmxDataSourceMBean
Returns:
Integer lock pool

setJDBCDeadLockPool

public void setJDBCDeadLockPool(java.lang.Integer size)
MBean method:
Specified by:
setJDBCDeadLockPool in interface JmxDataSourceMBean
Parameters:
Integer - lock pool

getJDBCLoopWaitPool

public java.lang.Integer getJDBCLoopWaitPool()
MBean method:
Specified by:
getJDBCLoopWaitPool in interface JmxDataSourceMBean
Returns:
Integer wait pool

setJDBCLoopWaitPool

public void setJDBCLoopWaitPool(java.lang.Integer size)
MBean method:
Specified by:
setJDBCLoopWaitPool in interface JmxDataSourceMBean
Parameters:
Integer - wait pool

getDataSourceType

public java.lang.String getDataSourceType()
return the type of this data source
Specified by:
getDataSourceType in interface JmxDataSourceMBean

getDataSourceDescription

public java.lang.String getDataSourceDescription()
MBean Method:
Specified by:
getDataSourceDescription in interface JmxDataSourceMBean
Returns:
the desrciption of this datasource

setDataSourceDescription

public void setDataSourceDescription(java.lang.String dsDesc)
Management Method:
Parameters:
the - desrciption of this datasource

setXAFactory

public void setXAFactory(java.lang.String xafactory)

getXAFactory

public java.lang.String getXAFactory()