org.ow2.jonas.ant.cluster
Class ModJk

java.lang.Object
  extended by org.ow2.jonas.ant.jonasbase.Tasks
      extended by org.ow2.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
 String addWorker(String portNumber, String lbFactor)
          Add a worker
 void createFiles()
          Creation of the mod_jk files
 void flushFiles()
          Generation of the config files
 void setDir(String dir)
          Set the mod_jk directory
 void setRootDir(String dir)
          Set the root directory
 void setStickySession(boolean stickySession)
          Set sticky Session
 
Methods inherited from class org.ow2.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()
Creation of the mod_jk files


addWorker

public String addWorker(String portNumber,
                        String lbFactor)
Add a worker

Parameters:
portNumber - port number
lbFactor - load balancing factor
Returns:
worker name

flushFiles

public void flushFiles()
Generation of the config files


setStickySession

public void setStickySession(boolean stickySession)
Set sticky Session

Parameters:
stickySession - to set

setDir

public void setDir(String dir)
Set the mod_jk directory

Parameters:
dir - directory

setRootDir

public void setRootDir(String dir)
Set the root directory

Parameters:
dir - directory


Copyright © 2010 OW2 Consortium. All Rights Reserved.