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:
Cloneable
Ant task that implements the
/status command, 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, usernameFields inherited from class org.apache.catalina.ant.BaseRedirectorHelperTask
alwaysLog, failOnError, redirectErrStream, redirector, redirectorConfigured, redirectorElement, redirectOutput, redirectOutStreamFields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapperFields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheck correct lb and worker parametervoidexecute()Execute the requested operation.intGet the internal ID.Get the lbForceSession flag.Get the lbRecovertime value.Get the lbRetries value.Get the lbStickySession flag.Get the worker name.Get the worker cluster domain.Get the worker disabled flag.Get the worker load balancing configuration.Get the worker load factor.Get the worker redirect target.Get the worker stopped flag.Get the worker type.voidsetInternalid(int internalid) Set the internal ID.voidsetLbForceSession(Boolean lbForceSession) Set the lbForceSession flag.voidsetLbRecovertime(Integer lbRecovertime) Set the lbRecovertime value.voidsetLbRetries(Integer lbRetries) Set the lbRetries value.voidsetLbStickySession(Boolean lbStickySession) Set the lbStickySession flag.voidSet the worker name.voidsetWorkerClusterDomain(String workerClusterDomain) Set the worker cluster domain.voidsetWorkerDisabled(Boolean workerDisabled) Set the worker disabled flag.voidsetWorkerLb(String workerLb) Set the worker load balancing configuration.voidsetWorkerLoadFactor(Integer workerLoadFactor) Set the worker load factor.voidsetWorkerRedirect(String workerRedirect) Set the worker redirect target.voidsetWorkerStopped(Boolean workerStopped) Set the worker stopped flag.voidsetWorkerType(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, setUsernameMethods 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, setOutputpropertyMethods 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, setTaskTypeMethods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
-
Constructor Details
-
JKStatusUpdateTask
public JKStatusUpdateTask()Constructs a new JKStatusUpdateTask.
-
-
Method Details
-
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
Get the lbForceSession flag.- Returns:
- the lbForceSession flag
-
setLbForceSession
Set the lbForceSession flag.- Parameters:
lbForceSession- the value to set
-
getLbRecovertime
Get the lbRecovertime value.- Returns:
- the lbRecovertime value
-
setLbRecovertime
Set the lbRecovertime value.- Parameters:
lbRecovertime- the value to set
-
getLbRetries
Get the lbRetries value.- Returns:
- the lbRetries value
-
setLbRetries
Set the lbRetries value.- Parameters:
lbRetries- the value to set
-
getLbStickySession
Get the lbStickySession flag.- Returns:
- the lbStickySession flag
-
setLbStickySession
Set the lbStickySession flag.- Parameters:
lbStickySession- the value to set
-
getWorker
Get the worker name.- Returns:
- the worker name
-
setWorker
Set the worker name.- Parameters:
worker- the worker name to set
-
getWorkerType
Get the worker type.- Returns:
- the worker type
-
setWorkerType
Set the worker type.- Parameters:
workerType- the worker type to set
-
getWorkerLb
Get the worker load balancing configuration.- Returns:
- the worker load balancing configuration
-
setWorkerLb
Set the worker load balancing configuration.- Parameters:
workerLb- the value to set
-
getWorkerClusterDomain
Get the worker cluster domain.- Returns:
- the worker cluster domain
-
setWorkerClusterDomain
Set the worker cluster domain.- Parameters:
workerClusterDomain- the value to set
-
getWorkerDisabled
Get the worker disabled flag.- Returns:
- the worker disabled flag
-
setWorkerDisabled
Set the worker disabled flag.- Parameters:
workerDisabled- the value to set
-
getWorkerStopped
Get the worker stopped flag.- Returns:
- the worker stopped flag
-
setWorkerStopped
Set the worker stopped flag.- Parameters:
workerStopped- the value to set
-
getWorkerLoadFactor
Get the worker load factor.- Returns:
- the worker load factor
-
setWorkerLoadFactor
Set the worker load factor.- Parameters:
workerLoadFactor- the value to set
-
getWorkerRedirect
Get the worker redirect target.- Returns:
- the worker redirect target
-
setWorkerRedirect
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
-