Interface ObjectPoolMBean
-
public interface ObjectPoolMBeanConfigure the dimensions of this object pool. The defaults for a given service or profile pool is the default service or profile pool The defaults for the default service or profile pool is the default profile pool
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description intgetInitialPooledPoolSize()Get the initial pooled size of this config.intgetPersistentStatePoolSize()Get the persistent state pool size of this config.intgetPooledPoolSize()Get the pooled pool size of this config.intgetReadyPoolSize()Get the ready pool size of this config.intgetStalePoolSize()Get the stale pool size of this config.intgetStatePoolSize()Get the state pool size of this config.booleangetUseDefaults()Deprecated.This property is no longer used, and this method will now always returnfalse.voidsetInitialPooledPoolSize(int size)Change the initial size of the pooled pool for this config.voidsetPersistentStatePoolSize(int size)Set the size of the persistent state pool for this config.voidsetPooledPoolSize(int size)Change the size of the pooled pool for this config.voidsetReadyPoolSize(int size)Set the size of the ready pool for this config.voidsetStalePoolSize(int size)Set the size of the stale pool for this config.voidsetStatePoolSize(int size)Set the size of the state pool for this config.voidsetUseDefaults(boolean useDefaults)Deprecated.This property is no longer used, consequently this method no longer has any effect.
-
-
-
Method Detail
-
setUseDefaults
@Deprecated void setUseDefaults(boolean useDefaults) throws ConfigurationException, com.opencloud.util.exception.ValidationException
Deprecated.This property is no longer used, consequently this method no longer has any effect.Make this pool use the dimensions of its default pool
- Parameters:
useDefaults- true/enabled or false/disabled- Throws:
ConfigurationExceptioncom.opencloud.util.exception.ValidationException
-
setInitialPooledPoolSize
void setInitialPooledPoolSize(int size) throws ConfigurationException, com.opencloud.util.exception.ValidationExceptionChange the initial size of the pooled pool for this config.
- Parameters:
size- the initial pool size- Throws:
ConfigurationException- if the size is negative, or greater than the current pooled pool size.com.opencloud.util.exception.ValidationException
-
setPooledPoolSize
void setPooledPoolSize(int size) throws ConfigurationException, com.opencloud.util.exception.ValidationExceptionChange the size of the pooled pool for this config.
- Parameters:
size- the new pool size- Throws:
ConfigurationException- ValidationException if size is less than or equal to zerocom.opencloud.util.exception.ValidationException
-
setStatePoolSize
void setStatePoolSize(int size) throws ConfigurationException, com.opencloud.util.exception.ValidationExceptionSet the size of the state pool for this config.
- Parameters:
size- the new pool size- Throws:
ConfigurationException- ValidationException if size is less than or equal to zerocom.opencloud.util.exception.ValidationException
-
setPersistentStatePoolSize
void setPersistentStatePoolSize(int size) throws ConfigurationException, com.opencloud.util.exception.ValidationExceptionSet the size of the persistent state pool for this config.
- Parameters:
size- the new pool size- Throws:
ConfigurationException- ValidationException if size is less than or equal to zerocom.opencloud.util.exception.ValidationException
-
setReadyPoolSize
void setReadyPoolSize(int size) throws ConfigurationException, com.opencloud.util.exception.ValidationExceptionSet the size of the ready pool for this config.
- Parameters:
size- the new pool size- Throws:
ConfigurationException- ValidationException if size is less than or equal to zerocom.opencloud.util.exception.ValidationException
-
setStalePoolSize
void setStalePoolSize(int size) throws ConfigurationException, com.opencloud.util.exception.ValidationExceptionSet the size of the stale pool for this config.
- Parameters:
size- the new pool size- Throws:
ConfigurationException- ValidationException if size is less than or equal to zerocom.opencloud.util.exception.ValidationException
-
getUseDefaults
@Deprecated boolean getUseDefaults() throws ConfigurationException
Deprecated.This property is no longer used, and this method will now always returnfalse.Are the dimensions of the default profile used
- Returns:
- true/enabled or false/disabled
- Throws:
ConfigurationException
-
getInitialPooledPoolSize
int getInitialPooledPoolSize() throws ConfigurationExceptionGet the initial pooled size of this config.
- Returns:
- the dimension
- Throws:
ConfigurationException
-
getPooledPoolSize
int getPooledPoolSize() throws ConfigurationExceptionGet the pooled pool size of this config.
- Returns:
- the dimension
- Throws:
ConfigurationException
-
getStatePoolSize
int getStatePoolSize() throws ConfigurationExceptionGet the state pool size of this config.
- Returns:
- the dimension
- Throws:
ConfigurationException
-
getPersistentStatePoolSize
int getPersistentStatePoolSize() throws ConfigurationExceptionGet the persistent state pool size of this config.
- Returns:
- the dimension
- Throws:
ConfigurationException
-
getReadyPoolSize
int getReadyPoolSize() throws ConfigurationExceptionGet the ready pool size of this config.
- Returns:
- the dimension
- Throws:
ConfigurationException
-
getStalePoolSize
int getStalePoolSize() throws ConfigurationExceptionGet the stale pool size of this config.
- Returns:
- the dimension
- Throws:
ConfigurationException
-
-