Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.jk.status
Class JkStatusResetTask  view JkStatusResetTask download JkStatusResetTask.java

java.lang.Object
  extended byorg.apache.tools.ant.ProjectComponent
      extended byorg.apache.tools.ant.Task
          extended byorg.apache.catalina.ant.BaseRedirectorHelperTask
              extended byorg.apache.catalina.ant.AbstractCatalinaTask
                  extended byorg.apache.jk.status.JkStatusResetTask

public class JkStatusResetTask
extends org.apache.catalina.ant.AbstractCatalinaTask

Ant task that implements the /jkstatus?cmd=reset&l=loadbalancer command, supported by the mod_jk status (1.2.15) application.

Since:
5.5.13
Version:
$Revision: 1.3 $

Field Summary
private  java.lang.String workerLb
           
 
Fields inherited from class org.apache.catalina.ant.AbstractCatalinaTask
charset, 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
description, location, target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
 
Constructor Summary
JkStatusResetTask()
           
 
Method Summary
protected  void checkParameter()
          check correct lb and worker pararmeter
private  java.lang.StringBuffer createLink()
          Create jkstatus reset link load balance example: http://localhost/jkstatus?cmd=reset&w=loadbalancer&mime=txt
 void execute()
          Execute the requested operation.
 java.lang.String getWorkerLb()
           
 void setWorkerLb(java.lang.String workerLb)
           
 
Methods inherited from class org.apache.catalina.ant.AbstractCatalinaTask
execute, execute, getCharset, getPassword, getUrl, getUsername, setCharset, setPassword, setUrl, setUsername
 
Methods inherited from class org.apache.catalina.ant.BaseRedirectorHelperTask
addConfiguredRedirector, closeRedirector, handleErrorFlush, handleErrorOutput, handleFlush, handleFlush, handleOutput, handleOutput, isFailOnError, openRedirector, setAlwaysLog, setAppend, setCreateEmptyFiles, setError, setErrorProperty, setFailonerror, setLogError, setOutput, setOutputproperty
 
Methods inherited from class org.apache.tools.ant.Task
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleInput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject, setProject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

workerLb

private java.lang.String workerLb
Constructor Detail

JkStatusResetTask

public JkStatusResetTask()
Method Detail

getWorkerLb

public java.lang.String getWorkerLb()

setWorkerLb

public void setWorkerLb(java.lang.String workerLb)

execute

public void execute()
             throws org.apache.tools.ant.BuildException
Execute the requested operation.


createLink

private java.lang.StringBuffer createLink()
Create jkstatus reset link
  • load balance example: http://localhost/jkstatus?cmd=reset&w=loadbalancer&mime=txt


checkParameter

protected void checkParameter()
check correct lb and worker pararmeter