|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.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 ManagedConnectionPoolMBeansize - 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 ManagedConnectionPoolMBeanjdbcURL - 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 ManagedConnectionPoolMBeanconnectionProperties - the String defining the properties
javax.management.MBeanException
public void setJdbcDrivers(java.lang.String jdbcDrivers)
throws javax.management.MBeanException
setJdbcDrivers in interface ManagedConnectionPoolMBeanjdbcDrivers - the list of JDBC driver classes to load, separated by
colon/semicolon or comma.
javax.management.MBeanExceptionpublic int getFreeCount()
ManagedConnectionPoolMBean
getFreeCount in interface ManagedConnectionPoolMBeanManagedObjectPoolMBean.getFreeCount()public java.lang.Class getObjectType()
public int getSize()
ManagedConnectionPoolMBean
getSize in interface ManagedConnectionPoolMBeanpublic int getUsedCount()
ManagedConnectionPoolMBean
getUsedCount in interface ManagedConnectionPoolMBeanpublic java.lang.String getJdbcURL()
ManagedConnectionPoolMBean
getJdbcURL in interface ManagedConnectionPoolMBeanpublic java.lang.String getConnectionProperties()
ManagedConnectionPoolMBeansetConnectionProperties() for details.
getConnectionProperties in interface ManagedConnectionPoolMBeanpublic java.lang.String getJdbcDrivers()
getJdbcDrivers in interface ManagedConnectionPoolMBeanpublic void enableWatchDog()
public void disableWatchDog()
public void checkFailed(java.lang.Object obj,
java.lang.Throwable e)
WatchDog.Listener
checkFailed in interface WatchDog.Listenere -
public void checkImpossible(java.lang.Object obj,
WatchDogException e)
WatchDog.Listener
checkImpossible in interface WatchDog.Listenere - 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 | ||||||||||