Package org.apache.catalina.ant
Class JKStatusUpdateTask
- java.lang.Object
-
- org.apache.tools.ant.ProjectComponent
-
- org.apache.tools.ant.Task
-
- org.apache.catalina.ant.BaseRedirectorHelperTask
-
- org.apache.catalina.ant.AbstractCatalinaTask
-
- org.apache.catalina.ant.JKStatusUpdateTask
-
- All Implemented Interfaces:
java.lang.Cloneable
public class JKStatusUpdateTask extends AbstractCatalinaTask
Ant task that implements the/statuscommand, supported by the mod_jk status (1.2.9) application.- Since:
- 5.5.9
-
-
Field Summary
-
Fields inherited from class org.apache.catalina.ant.AbstractCatalinaTask
charset, ignoreResponseConstraint, password, url, username
-
Fields inherited from class org.apache.catalina.ant.BaseRedirectorHelperTask
alwaysLog, failOnError, redirectErrStream, redirector, redirectorConfigured, redirectorElement, redirectOutput, redirectOutStream
-
-
Constructor Summary
Constructors Constructor Description JKStatusUpdateTask()Constructs a new JKStatusUpdateTask.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheckParameter()check correct lb and worker parametervoidexecute()Execute the requested operation.intgetInternalid()Get the internal ID.java.lang.BooleangetLbForceSession()Get the lbForceSession flag.java.lang.IntegergetLbRecovertime()Get the lbRecovertime value.java.lang.IntegergetLbRetries()Get the lbRetries value.java.lang.BooleangetLbStickySession()Get the lbStickySession flag.java.lang.StringgetWorker()Get the worker name.java.lang.StringgetWorkerClusterDomain()Get the worker cluster domain.java.lang.BooleangetWorkerDisabled()Get the worker disabled flag.java.lang.StringgetWorkerLb()Get the worker load balancing configuration.java.lang.IntegergetWorkerLoadFactor()Get the worker load factor.java.lang.StringgetWorkerRedirect()Get the worker redirect target.java.lang.BooleangetWorkerStopped()Get the worker stopped flag.java.lang.StringgetWorkerType()Get the worker type.voidsetInternalid(int internalid)Set the internal ID.voidsetLbForceSession(java.lang.Boolean lbForceSession)Set the lbForceSession flag.voidsetLbRecovertime(java.lang.Integer lbRecovertime)Set the lbRecovertime value.voidsetLbRetries(java.lang.Integer lbRetries)Set the lbRetries value.voidsetLbStickySession(java.lang.Boolean lbStickySession)Set the lbStickySession flag.voidsetWorker(java.lang.String worker)Set the worker name.voidsetWorkerClusterDomain(java.lang.String workerClusterDomain)Set the worker cluster domain.voidsetWorkerDisabled(java.lang.Boolean workerDisabled)Set the worker disabled flag.voidsetWorkerLb(java.lang.String workerLb)Set the worker load balancing configuration.voidsetWorkerLoadFactor(java.lang.Integer workerLoadFactor)Set the worker load factor.voidsetWorkerRedirect(java.lang.String workerRedirect)Set the worker redirect target.voidsetWorkerStopped(java.lang.Boolean workerStopped)Set the worker stopped flag.voidsetWorkerType(java.lang.String workerType)Set the worker type.-
Methods inherited from class org.apache.catalina.ant.AbstractCatalinaTask
execute, execute, getCharset, getPassword, getUrl, getUsername, isIgnoreResponseConstraint, setCharset, setIgnoreResponseConstraint, setPassword, setUrl, setUsername
-
Methods inherited from class org.apache.catalina.ant.BaseRedirectorHelperTask
addConfiguredRedirector, closeRedirector, handleErrorFlush, handleErrorOutput, handleFlush, handleOutput, handleOutput, isFailOnError, openRedirector, setAlwaysLog, setAppend, setCreateEmptyFiles, setError, setErrorProperty, setFailonerror, setLogError, setOutput, setOutputproperty
-
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleInput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
-
-
-
-
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.BuildExceptionExecute the requested operation.- Overrides:
executein classAbstractCatalinaTask- Throws:
org.apache.tools.ant.BuildException- if an error occurs
-
checkParameter
protected void checkParameter()
check correct lb and worker parameter
-
-