|
Apache Tomcat 7.0.28 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tomcat.jdbc.pool.DataSourceProxy org.apache.tomcat.jdbc.pool.DataSource
public class DataSource
A DataSource that can be instantiated through IoC and implements the DataSource interface
since the DataSourceProxy is used as a generic proxy.
The DataSource simply wraps a ConnectionPool
in order to provide a standard interface to the user.
Field Summary | |
---|---|
protected ObjectName |
oname
|
Fields inherited from class org.apache.tomcat.jdbc.pool.DataSourceProxy |
---|
pool, poolProperties |
Fields inherited from interface org.apache.tomcat.jdbc.pool.PoolConfiguration |
---|
PKG_PREFIX |
Constructor Summary | |
---|---|
DataSource()
Constructor for reflection only. |
|
DataSource(PoolConfiguration poolProperties)
Constructs a DataSource object wrapping a connection |
Method Summary | |
---|---|
ObjectName |
createObjectName(ObjectName original)
Creates the ObjectName for the ConnectionPoolMBean object to be registered |
void |
postDeregister()
Unregisters the underlying connection pool mbean. |
void |
postRegister(Boolean registrationDone)
no-op |
void |
preDeregister()
no-op |
ObjectName |
preRegister(MBeanServer server,
ObjectName name)
If the connection pool MBean exists, it will be registered during this operation. |
protected void |
registerJmx()
Registers the ConnectionPoolMBean under a unique name based on the ObjectName for the DataSource |
protected void |
unregisterJmx()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface javax.sql.DataSource |
---|
getConnection, getConnection |
Methods inherited from interface java.sql.Wrapper |
---|
isWrapperFor, unwrap |
Methods inherited from interface org.apache.tomcat.jdbc.pool.jmx.ConnectionPoolMBean |
---|
checkAbandoned, checkIdle, getActive, getIdle, getNumActive, getNumIdle, getSize, getWaitCount, purge, purgeOnReturn, testIdle |
Methods inherited from interface javax.sql.ConnectionPoolDataSource |
---|
getPooledConnection, getPooledConnection |
Methods inherited from interface javax.sql.CommonDataSource |
---|
getLoginTimeout, getLogWriter, setLoginTimeout, setLogWriter |
Field Detail |
---|
protected volatile ObjectName oname
Constructor Detail |
---|
public DataSource()
public DataSource(PoolConfiguration poolProperties)
poolProperties
- Method Detail |
---|
public void postDeregister()
postDeregister
in interface MBeanRegistration
public void postRegister(Boolean registrationDone)
postRegister
in interface MBeanRegistration
public void preDeregister() throws Exception
preDeregister
in interface MBeanRegistration
Exception
public ObjectName preRegister(MBeanServer server, ObjectName name) throws Exception
preRegister
in interface MBeanRegistration
Exception
public ObjectName createObjectName(ObjectName original) throws MalformedObjectNameException
original
- the ObjectName for the DataSource
MalformedObjectNameException
protected void registerJmx()
protected void unregisterJmx()
|
Apache Tomcat 7.0.28 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |