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
- Author:
- Peter Rossbach
-
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.intvoidsetInternalid(int internalid) voidsetLbForceSession(Boolean lbForceSession) voidsetLbRecovertime(Integer lbRecovertime) voidsetLbRetries(Integer lbRetries) voidsetLbStickySession(Boolean lbStickySession) voidvoidsetWorkerClusterDomain(String workerClusterDomain) voidsetWorkerDisabled(Boolean workerDisabled) voidsetWorkerLb(String workerLb) voidsetWorkerLoadFactor(Integer workerLoadFactor) voidsetWorkerRedirect(String workerRedirect) voidsetWorkerStopped(Boolean workerStopped) voidsetWorkerType(String workerType) 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()
-
-
Method Details
-
getInternalid
public int getInternalid()- Returns:
- Returns the internalid.
-
setInternalid
public void setInternalid(int internalid) - Parameters:
internalid- The internalid to set.
-
getLbForceSession
- Returns:
- Returns the lbForceSession.
-
setLbForceSession
- Parameters:
lbForceSession- The lbForceSession to set.
-
getLbRecovertime
- Returns:
- Returns the lbRecovertime.
-
setLbRecovertime
- Parameters:
lbRecovertime- The lbRecovertime to set.
-
getLbRetries
- Returns:
- Returns the lbRetries.
-
setLbRetries
- Parameters:
lbRetries- The lbRetries to set.
-
getLbStickySession
- Returns:
- Returns the lbStickySession.
-
setLbStickySession
- Parameters:
lbStickySession- The lbStickySession to set.
-
getWorker
- Returns:
- Returns the worker.
-
setWorker
- Parameters:
worker- The worker to set.
-
getWorkerType
- Returns:
- Returns the workerType.
-
setWorkerType
- Parameters:
workerType- The workerType to set.
-
getWorkerLb
- Returns:
- Returns the workerLb.
-
setWorkerLb
- Parameters:
workerLb- The workerLb to set.
-
getWorkerClusterDomain
- Returns:
- Returns the workerClusterDomain.
-
setWorkerClusterDomain
- Parameters:
workerClusterDomain- The workerClusterDomain to set.
-
getWorkerDisabled
- Returns:
- Returns the workerDisabled.
-
setWorkerDisabled
- Parameters:
workerDisabled- The workerDisabled to set.
-
getWorkerStopped
- Returns:
- Returns the workerStopped.
-
setWorkerStopped
- Parameters:
workerStopped- The workerStopped to set.
-
getWorkerLoadFactor
- Returns:
- Returns the workerLoadFactor.
-
setWorkerLoadFactor
- Parameters:
workerLoadFactor- The workerLoadFactor to set.
-
getWorkerRedirect
- Returns:
- Returns the workerRedirect.
-
setWorkerRedirect
- Parameters:
workerRedirect- The workerRedirect 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
-