Interface ObjectPoolMBean
-
public interface ObjectPoolMBean
Configure 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 int
getInitialPooledPoolSize()
Get the initial pooled size of this config.int
getPersistentStatePoolSize()
Get the persistent state pool size of this config.int
getPooledPoolSize()
Get the pooled pool size of this config.int
getReadyPoolSize()
Get the ready pool size of this config.int
getStalePoolSize()
Get the stale pool size of this config.int
getStatePoolSize()
Get the state pool size of this config.boolean
getUseDefaults()
Deprecated.This property is no longer used, and this method will now always returnfalse
.void
setInitialPooledPoolSize(int size)
Change the initial size of the pooled pool for this config.void
setPersistentStatePoolSize(int size)
Set the size of the persistent state pool for this config.void
setPooledPoolSize(int size)
Change the size of the pooled pool for this config.void
setReadyPoolSize(int size)
Set the size of the ready pool for this config.void
setStalePoolSize(int size)
Set the size of the stale pool for this config.void
setStatePoolSize(int size)
Set the size of the state pool for this config.void
setUseDefaults(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:
ConfigurationException
com.opencloud.util.exception.ValidationException
-
setInitialPooledPoolSize
void setInitialPooledPoolSize(int size) throws ConfigurationException, com.opencloud.util.exception.ValidationException
Change 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.ValidationException
Change 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.ValidationException
Set 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.ValidationException
Set 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.ValidationException
Set 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.ValidationException
Set 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 ConfigurationException
Get the initial pooled size of this config.
- Returns:
- the dimension
- Throws:
ConfigurationException
-
getPooledPoolSize
int getPooledPoolSize() throws ConfigurationException
Get the pooled pool size of this config.
- Returns:
- the dimension
- Throws:
ConfigurationException
-
getStatePoolSize
int getStatePoolSize() throws ConfigurationException
Get the state pool size of this config.
- Returns:
- the dimension
- Throws:
ConfigurationException
-
getPersistentStatePoolSize
int getPersistentStatePoolSize() throws ConfigurationException
Get the persistent state pool size of this config.
- Returns:
- the dimension
- Throws:
ConfigurationException
-
getReadyPoolSize
int getReadyPoolSize() throws ConfigurationException
Get the ready pool size of this config.
- Returns:
- the dimension
- Throws:
ConfigurationException
-
getStalePoolSize
int getStalePoolSize() throws ConfigurationException
Get the stale pool size of this config.
- Returns:
- the dimension
- Throws:
ConfigurationException
-
-