org.sadun.util.pool
Interface ManagedObjectPoolMBean

All Known Implementing Classes:
ManagedObjectPool

public interface ManagedObjectPoolMBean

Author:
Cristiano Sadun

Method Summary
 java.lang.String getFactoryClassName()
          Return the name of the factory class in use
 int getFreeCount()
          Return the number of available objects in the pool
 java.lang.Class getObjectType()
          Return the object type pooled by this pool
 int getSize()
          Return the size of the pool
 int getUsedCount()
          Return the number of used objects in the pool
 void setFactoryClassName(java.lang.String factoryClassName)
          Set the name of the factory class to use.
 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

getObjectType

public java.lang.Class getObjectType()
Return the object type pooled by this pool


setFactoryClassName

public void setFactoryClassName(java.lang.String factoryClassName)
                         throws javax.management.MBeanException
Set the name of the factory class to use.

Parameters:
factoryClassName -
Throws:
javax.management.MBeanException

getFactoryClassName

public java.lang.String getFactoryClassName()
Return the name of the factory class in use

Returns: