org.sadun.util.pool.connection
Interface ManagedConnectionPoolMBean

All Known Implementing Classes:
ManagedConnectionPool

public interface ManagedConnectionPoolMBean

Author:
Cristiano Sadun

Method Summary
 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
 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 jdbcURL accessed by this pool
 void setSize(int size)
          Set the size of the pool
 

Method Detail

getFreeCount

public int getFreeCount()
Return the number of available objects in the pool

Returns:
the number of available objects in the pool

getUsedCount

public int getUsedCount()
Return the number of used objects in the pool

Returns:
the number of used objects in the pool

getSize

public int getSize()
Return the size of the pool

Returns:
the size of the pool

setSize

public void setSize(int size)
             throws javax.management.MBeanException
Set the size of the pool

Parameters:
size - the size of the pool
Throws:
javax.management.MBeanException

getJdbcURL

public java.lang.String getJdbcURL()
Return the jdbcURL accessed by this pool

Returns:
the jdbcURL accessed by this pool

setJdbcURL

public void setJdbcURL(java.lang.String jdbcURL)
                throws javax.management.MBeanException
Set the jdbcURL accessed by this pool

Throws:
javax.management.MBeanException

setConnectionProperties

public void setConnectionProperties(java.lang.String connectionProperties)
                             throws javax.management.MBeanException
Set the connection properties of the pool. The passed string is interpreted as a sequence of name=value tokens separated by spaces or commas. Values can be quoted if they contain spaces or commans, and the quotes are discarded.

Parameters:
connectionProperties - the String defining the properties
Throws:
javax.management.MBeanException

getConnectionProperties

public java.lang.String getConnectionProperties()
Return the connection properties of the pool (see setConnectionProperties() for details.

Returns:
the connection properties of the pool

getJdbcDrivers

public java.lang.String getJdbcDrivers()
Return a list of JDBC driver classes to load, separated by colon/semicolon or comma.

Returns:
a list of JDBC driver classes to load, separated by colon/semicolon or comma.

setJdbcDrivers

public void setJdbcDrivers(java.lang.String jdbcDrivers)
                    throws javax.management.MBeanException
Set the list of JDBC driver classes to load, separated by colon/semicolon or comma.

Parameters:
jdbcDrivers - the list of JDBC driver classes to load, separated by colon/semicolon or comma.
Throws:
javax.management.MBeanException