Class ConfigureObjectPoolsTask

  • All Implemented Interfaces:
    SubTask

    public class ConfigureObjectPoolsTask
    extends ComponentBasedTask

    A Rhino management sub task for configuring object pools.

    Ant Parameters
    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 BuildException when an error is encountered. If 'false', the sub task will throw a NonFatalBuildException instead of a BuildException under specific circumstances. See below for conditions (if any) which will cause a NonFatalBuildException.

    No. default value is taken from the Rhino management parent task.

    • Constructor Detail

      • ConfigureObjectPoolsTask

        public ConfigureObjectPoolsTask()
    • Method Detail

      • execute

        protected void execute()
                        throws org.apache.tools.ant.BuildException
        Specified by:
        execute in class AbstractBaseTask
        Throws:
        org.apache.tools.ant.BuildException
      • validateParameters

        protected void validateParameters()
                                   throws org.apache.tools.ant.BuildException
        Specified by:
        validateParameters in class AbstractBaseTask
        Throws:
        org.apache.tools.ant.BuildException
      • setObjectPoolType

        public void setObjectPoolType​(String objectPoolType)
      • setServiceID

        public void setServiceID​(String serviceID)
      • setProfileTableName

        public void setProfileTableName​(String profileTableName)
      • setInitialPooledPoolSize

        public void setInitialPooledPoolSize​(int initialPooledPoolSize)
      • setPooledPoolSize

        public void setPooledPoolSize​(int pooledPoolSize)
      • setReadyPoolSize

        public void setReadyPoolSize​(int readyPoolSize)
      • setStalePoolSize

        public void setStalePoolSize​(int stalePoolSize)
      • setStatePoolSize

        public void setStatePoolSize​(int statePoolSize)
      • setPersistentStatePoolSize

        public void setPersistentStatePoolSize​(int statePoolSize)
      • setUseDefaults

        public void setUseDefaults​(String useDefaults)