org.objectweb.jonas.ant.cluster
Class ModJk

java.lang.Object
  extended byorg.objectweb.jonas.ant.jonasbase.Tasks
      extended byorg.objectweb.jonas.ant.cluster.ModJk

public class ModJk
extends Tasks

Allow to configure the mod_jk load balancer for Apache

Author:
Benoit Pelletier

Nested Class Summary
 class ModJk.Worker
          Define an inner class for workers
 
Constructor Summary
ModJk()
          Default constructor
 
Method Summary
 void addWorker(java.lang.String portNumber, java.lang.String lbFactor)
          Add a worker
 void createFiles(java.lang.String destDir)
          Creation of the mod_jk files
 void flushFiles()
          Generation of the config files
 void setStickySession(boolean stickySession)
          Set sticky Session
 
Methods inherited from class org.objectweb.jonas.ant.jonasbase.Tasks
addTask, addTasks, addTasks, getTasks
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModJk

public ModJk()
Default constructor

Method Detail

createFiles

public void createFiles(java.lang.String destDir)
Creation of the mod_jk files

Parameters:
destDir - destination directory

addWorker

public void addWorker(java.lang.String portNumber,
                      java.lang.String lbFactor)
Add a worker

Parameters:
portNumber - port number
lbFactor - load balancing factor

flushFiles

public void flushFiles()
Generation of the config files


setStickySession

public void setStickySession(boolean stickySession)
Set sticky Session

Parameters:
stickySession - to set