Class JKStatusUpdateTask

  • All Implemented Interfaces:
    java.lang.Cloneable

    public class JKStatusUpdateTask
    extends AbstractCatalinaTask
    Ant task that implements the /status command, supported by the mod_jk status (1.2.9) application.
    Since:
    5.5.9
    • Constructor Detail

      • JKStatusUpdateTask

        public JKStatusUpdateTask()
        Constructs a new JKStatusUpdateTask.
    • Method Detail

      • getInternalid

        public int getInternalid()
        Get the internal ID.
        Returns:
        the internal ID
      • setInternalid

        public void setInternalid​(int internalid)
        Set the internal ID.
        Parameters:
        internalid - the internal ID to set
      • getLbForceSession

        public java.lang.Boolean getLbForceSession()
        Get the lbForceSession flag.
        Returns:
        the lbForceSession flag
      • setLbForceSession

        public void setLbForceSession​(java.lang.Boolean lbForceSession)
        Set the lbForceSession flag.
        Parameters:
        lbForceSession - the value to set
      • getLbRecovertime

        public java.lang.Integer getLbRecovertime()
        Get the lbRecovertime value.
        Returns:
        the lbRecovertime value
      • setLbRecovertime

        public void setLbRecovertime​(java.lang.Integer lbRecovertime)
        Set the lbRecovertime value.
        Parameters:
        lbRecovertime - the value to set
      • getLbRetries

        public java.lang.Integer getLbRetries()
        Get the lbRetries value.
        Returns:
        the lbRetries value
      • setLbRetries

        public void setLbRetries​(java.lang.Integer lbRetries)
        Set the lbRetries value.
        Parameters:
        lbRetries - the value to set
      • getLbStickySession

        public java.lang.Boolean getLbStickySession()
        Get the lbStickySession flag.
        Returns:
        the lbStickySession flag
      • setLbStickySession

        public void setLbStickySession​(java.lang.Boolean lbStickySession)
        Set the lbStickySession flag.
        Parameters:
        lbStickySession - the value to set
      • getWorker

        public java.lang.String getWorker()
        Get the worker name.
        Returns:
        the worker name
      • setWorker

        public void setWorker​(java.lang.String worker)
        Set the worker name.
        Parameters:
        worker - the worker name to set
      • getWorkerType

        public java.lang.String getWorkerType()
        Get the worker type.
        Returns:
        the worker type
      • setWorkerType

        public void setWorkerType​(java.lang.String workerType)
        Set the worker type.
        Parameters:
        workerType - the worker type to set
      • getWorkerLb

        public java.lang.String getWorkerLb()
        Get the worker load balancing configuration.
        Returns:
        the worker load balancing configuration
      • setWorkerLb

        public void setWorkerLb​(java.lang.String workerLb)
        Set the worker load balancing configuration.
        Parameters:
        workerLb - the value to set
      • getWorkerClusterDomain

        public java.lang.String getWorkerClusterDomain()
        Get the worker cluster domain.
        Returns:
        the worker cluster domain
      • setWorkerClusterDomain

        public void setWorkerClusterDomain​(java.lang.String workerClusterDomain)
        Set the worker cluster domain.
        Parameters:
        workerClusterDomain - the value to set
      • getWorkerDisabled

        public java.lang.Boolean getWorkerDisabled()
        Get the worker disabled flag.
        Returns:
        the worker disabled flag
      • setWorkerDisabled

        public void setWorkerDisabled​(java.lang.Boolean workerDisabled)
        Set the worker disabled flag.
        Parameters:
        workerDisabled - the value to set
      • getWorkerStopped

        public java.lang.Boolean getWorkerStopped()
        Get the worker stopped flag.
        Returns:
        the worker stopped flag
      • setWorkerStopped

        public void setWorkerStopped​(java.lang.Boolean workerStopped)
        Set the worker stopped flag.
        Parameters:
        workerStopped - the value to set
      • getWorkerLoadFactor

        public java.lang.Integer getWorkerLoadFactor()
        Get the worker load factor.
        Returns:
        the worker load factor
      • setWorkerLoadFactor

        public void setWorkerLoadFactor​(java.lang.Integer workerLoadFactor)
        Set the worker load factor.
        Parameters:
        workerLoadFactor - the value to set
      • getWorkerRedirect

        public java.lang.String getWorkerRedirect()
        Get the worker redirect target.
        Returns:
        the worker redirect target
      • setWorkerRedirect

        public void setWorkerRedirect​(java.lang.String workerRedirect)
        Set the worker redirect target.
        Parameters:
        workerRedirect - the value to set
      • execute

        public void execute()
                     throws org.apache.tools.ant.BuildException
        Execute the requested operation.
        Overrides:
        execute in class AbstractCatalinaTask
        Throws:
        org.apache.tools.ant.BuildException - if an error occurs
      • checkParameter

        protected void checkParameter()
        check correct lb and worker parameter