|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.sadun.util.pool.connection.ManagedConnectionPool
NOT COMPLETE YET
Constructor Summary | |
ManagedConnectionPool()
|
Method Summary | |
void |
checkFailed(java.lang.Object obj,
java.lang.Throwable e)
Notifies the listener that a check has failed. |
void |
checkImpossible(java.lang.Object obj,
WatchDogException e)
Notifies the listener that a check could not be performed. |
void |
checkOk(java.lang.Object obj)
Notifies the listener that a check has been successful |
void |
disableWatchDog()
|
void |
enableWatchDog()
Enables the watchdog thread for the pool, registering this mbean as a listener |
java.lang.String |
getConnectionProperties()
Return the connection properties of the pool (see setConnectionProperties() for details. |
int |
getFreeCount()
Return the number of available objects in the pool |
java.lang.String |
getJdbcDrivers()
Return a list of JDBC driver classes to load, separated by colon/semicolon or comma. |
java.lang.String |
getJdbcURL()
Return the jdbcURL accessed by this pool |
java.lang.Class |
getObjectType()
|
int |
getSize()
Return the size of the pool |
int |
getUsedCount()
Return the number of used objects in the pool |
void |
setConnectionProperties(java.lang.String connectionProperties)
Set the connection properties of the pool. |
void |
setJdbcDrivers(java.lang.String jdbcDrivers)
Set the list of JDBC driver classes to load, separated by colon/semicolon or comma. |
void |
setJdbcURL(java.lang.String jdbcURL)
Set the jdbc URL of the pool. |
void |
setSize(int size)
Set the pool size. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ManagedConnectionPool()
Method Detail |
public void setSize(int size) throws javax.management.MBeanException
This property cannot be changed if some client has already acquired pooled objects.
setSize
in interface ManagedConnectionPoolMBean
size
- the new size
javax.management.MBeanException
public void setJdbcURL(java.lang.String jdbcURL) throws javax.management.MBeanException
This property cannot be changed if some client has already acquired pooled objects.
setJdbcURL
in interface ManagedConnectionPoolMBean
jdbcURL
- the new jdbcURL
javax.management.MBeanException
public void setConnectionProperties(java.lang.String connectionProperties) throws javax.management.MBeanException
This property cannot be changed if some client has already acquired pooled objects.
setConnectionProperties
in interface ManagedConnectionPoolMBean
connectionProperties
- the String defining the properties
javax.management.MBeanException
public void setJdbcDrivers(java.lang.String jdbcDrivers) throws javax.management.MBeanException
setJdbcDrivers
in interface ManagedConnectionPoolMBean
jdbcDrivers
- the list of JDBC driver classes to load, separated by
colon/semicolon or comma.
javax.management.MBeanException
public int getFreeCount()
ManagedConnectionPoolMBean
getFreeCount
in interface ManagedConnectionPoolMBean
ManagedObjectPoolMBean.getFreeCount()
public java.lang.Class getObjectType()
public int getSize()
ManagedConnectionPoolMBean
getSize
in interface ManagedConnectionPoolMBean
public int getUsedCount()
ManagedConnectionPoolMBean
getUsedCount
in interface ManagedConnectionPoolMBean
public java.lang.String getJdbcURL()
ManagedConnectionPoolMBean
getJdbcURL
in interface ManagedConnectionPoolMBean
public java.lang.String getConnectionProperties()
ManagedConnectionPoolMBean
setConnectionProperties()
for details.
getConnectionProperties
in interface ManagedConnectionPoolMBean
public java.lang.String getJdbcDrivers()
getJdbcDrivers
in interface ManagedConnectionPoolMBean
public void enableWatchDog()
public void disableWatchDog()
public void checkFailed(java.lang.Object obj, java.lang.Throwable e)
WatchDog.Listener
checkFailed
in interface WatchDog.Listener
e
- public void checkImpossible(java.lang.Object obj, WatchDogException e)
WatchDog.Listener
checkImpossible
in interface WatchDog.Listener
e
- public void checkOk(java.lang.Object obj)
WatchDog.Listener
checkOk
in interface WatchDog.Listener
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |