org.objectweb.jonas.ant.cluster
Class Director

java.lang.Object
  extended by org.objectweb.jonas.ant.jonasbase.Tasks
      extended by org.objectweb.jonas.ant.cluster.Director

public class Director
extends Tasks

Allow to configure the director Load Balancer for Apache

Author:
Benoit Pelletier

Nested Class Summary
 class Director.AppServer
          Define an inner class for application servers
 
Constructor Summary
Director()
          Default constructor
 
Method Summary
 void addAppServer(java.lang.String portNumber, java.lang.String lbFactor)
          Add an application server
 void createFile(java.lang.String destDir)
          Creation of the Director file
 void flushFile()
          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

Director

public Director()
Default constructor

Method Detail

createFile

public void createFile(java.lang.String destDir)
Creation of the Director file

Parameters:
destDir - destination directory

addAppServer

public void addAppServer(java.lang.String portNumber,
                         java.lang.String lbFactor)
Add an application server

Parameters:
portNumber - port number
lbFactor - load balancing factor

flushFile

public void flushFile()
Generation of the config files


setStickySession

public void setStickySession(boolean stickySession)
Set sticky Session

Parameters:
stickySession - to set