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, username
Fields inherited from class org.apache.catalina.ant.BaseRedirectorHelperTask
alwaysLog, failOnError, redirectErrStream, redirector, redirectorConfigured, redirectorElement, redirectOutput, redirectOutStream
Fields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapper
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
check correct lb and worker parametervoid
execute()
Execute the requested operation.int
void
setInternalid
(int internalid) void
setLbForceSession
(Boolean lbForceSession) void
setLbRecovertime
(Integer lbRecovertime) void
setLbRetries
(Integer lbRetries) void
setLbStickySession
(Boolean lbStickySession) void
void
setWorkerClusterDomain
(String workerClusterDomain) void
setWorkerDisabled
(Boolean workerDisabled) void
setWorkerLb
(String workerLb) void
setWorkerLoadFactor
(Integer workerLoadFactor) void
setWorkerRedirect
(String workerRedirect) void
setWorkerStopped
(Boolean workerStopped) void
setWorkerType
(String workerType) 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
Methods 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:
execute
in classAbstractCatalinaTask
- Throws:
org.apache.tools.ant.BuildException
- if an error occurs
-
checkParameter
protected void checkParameter()check correct lb and worker parameter
-