public class ConfigureObjectPoolsTask extends ComponentBasedTask
A Rhino management sub task for configuring object pools.
Attribute | Description | Required |
---|---|---|
initialPooledPoolSize |
The initial size of the object pool for objects in the pooled pool. |
No. |
pooledPoolSize |
The current size of the object pool for objects in the pooled pool. |
No. |
statePoolSize |
The current size of the object pool for objects in the state pool. |
No. |
persistentStatePoolSize |
The current size of the object pool for objects in the persistent state pool. |
No. |
readyPoolSize |
The current size of the object pool for objects in the ready pool. |
No. |
stalePoolSize |
The current size of the object pool for objects in the stale pool. |
No. |
failonerror |
Flag to control failure behaviour.
If 'true', the sub task will throw a |
No. default value is taken from the Rhino management parent task. |
component
client, failOnError
Constructor and Description |
---|
ConfigureObjectPoolsTask() |
Modifier and Type | Method and Description |
---|---|
protected void |
execute() |
void |
setInitialPooledPoolSize(int initialPooledPoolSize) |
void |
setObjectPoolType(String objectPoolType) |
void |
setPersistentStatePoolSize(int statePoolSize) |
void |
setPooledPoolSize(int pooledPoolSize) |
void |
setProfileTableName(String profileTableName) |
void |
setReadyPoolSize(int readyPoolSize) |
void |
setServiceID(String serviceID) |
void |
setStalePoolSize(int stalePoolSize) |
void |
setStatePoolSize(int statePoolSize) |
void |
setUseDefaults(String useDefaults) |
protected void |
validateParameters() |
addComponent, findComponent
getExceptionAndMessage, getFailOnError, getMessage, getOverrideFailOnError, getParent, getProject, log, run, setFailOnError
protected void execute() throws org.apache.tools.ant.BuildException
execute
in class AbstractBaseTask
org.apache.tools.ant.BuildException
protected void validateParameters() throws org.apache.tools.ant.BuildException
validateParameters
in class AbstractBaseTask
org.apache.tools.ant.BuildException
public void setObjectPoolType(String objectPoolType)
public void setServiceID(String serviceID)
public void setProfileTableName(String profileTableName)
public void setInitialPooledPoolSize(int initialPooledPoolSize)
public void setPooledPoolSize(int pooledPoolSize)
public void setReadyPoolSize(int readyPoolSize)
public void setStalePoolSize(int stalePoolSize)
public void setStatePoolSize(int statePoolSize)
public void setPersistentStatePoolSize(int statePoolSize)
public void setUseDefaults(String useDefaults)