org.objectweb.jonas.ant
Class JOnASClusterConfigTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.objectweb.jonas.ant.JOnASClusterConfigTask

public class JOnASClusterConfigTask
extends org.apache.tools.ant.Task

Class used to create a JOnAS Cluster Configuration

Author:
Benoit Pelletier

Field Summary
 
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
JOnASClusterConfigTask()
          Constructor
 
Method Summary
 void addConfiguredClusterDaemon(ClusterDaemon clusterDaemon)
          Add tasks for the is
 void addConfiguredCommon(Common common)
          Add tasks for the common instances (both web & ejb )
 void addConfiguredEjbLevel(EjbLevel ejbLevel)
          Add tasks for the ejb level instances If choosen architecture is both web and ejb within the same JOnAS, the tasks are added to all instances
 void addConfiguredScript(Script script)
          Add tasks for the is
 void addConfiguredWebLevel(WebLevel webLevel)
          Add tasks for the web level instances If choosen architecture is both web and ejb within the same JOnAS, the tasks are added to all instances
 void addTasks(Tasks subTasks)
          Add tasks for configured object
 void execute()
          Run this task
 void setArch(java.lang.String arch)
          Set architecture
 void setCdDir(java.lang.String cdDir)
          Set the cluster daemon directory
 void setDestDirPrefix(java.lang.String destDirPrefix)
          Set the destination directory prefix
 void setEjbInstNb(int ejbInstNb)
          Set the ejb instances number
 void setJonasRoot(java.io.File jonasRoot)
          Set the source directory for the replacement
 void setUpdate(boolean onlyUpdate)
          Set if this is only an update or a new JONAS_BASE
 void setWebInstNb(int webInstNb)
          Set the web instances number
 
Methods inherited from class org.apache.tools.ant.Task
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, 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
 

Constructor Detail

JOnASClusterConfigTask

public JOnASClusterConfigTask()
Constructor

Method Detail

execute

public void execute()
Run this task

Overrides:
execute in class org.apache.tools.ant.Task
See Also:
Task.execute()

addTasks

public void addTasks(Tasks subTasks)
Add tasks for configured object

Parameters:
subTasks - some tasks to do on files

setDestDirPrefix

public void setDestDirPrefix(java.lang.String destDirPrefix)
Set the destination directory prefix

Parameters:
destDirPrefix - the destination directory prefix

setCdDir

public void setCdDir(java.lang.String cdDir)
Set the cluster daemon directory

Parameters:
cdDir - the destination directory for the cluster daemon configuration

setJonasRoot

public void setJonasRoot(java.io.File jonasRoot)
Set the source directory for the replacement

Parameters:
jonasRoot - the source directory

setArch

public void setArch(java.lang.String arch)
Set architecture

Parameters:
arch - the architecture

setWebInstNb

public void setWebInstNb(int webInstNb)
Set the web instances number

Parameters:
webInstNb - number of web instances

setEjbInstNb

public void setEjbInstNb(int ejbInstNb)
Set the ejb instances number

Parameters:
ejbInstNb - number of ejb instances

addConfiguredCommon

public void addConfiguredCommon(Common common)
Add tasks for the common instances (both web & ejb )

Parameters:
common - common tasks to do

addConfiguredWebLevel

public void addConfiguredWebLevel(WebLevel webLevel)
Add tasks for the web level instances If choosen architecture is both web and ejb within the same JOnAS, the tasks are added to all instances

Parameters:
webLevel - tasks to do on files

addConfiguredEjbLevel

public void addConfiguredEjbLevel(EjbLevel ejbLevel)
Add tasks for the ejb level instances If choosen architecture is both web and ejb within the same JOnAS, the tasks are added to all instances

Parameters:
ejbLevel - tasks to do on files

addConfiguredScript

public void addConfiguredScript(Script script)
Add tasks for the is

Parameters:
script - Tasks to do on files

addConfiguredClusterDaemon

public void addConfiguredClusterDaemon(ClusterDaemon clusterDaemon)
Add tasks for the is

Parameters:
script - Tasks to do on files

setUpdate

public void setUpdate(boolean onlyUpdate)
Set if this is only an update or a new JONAS_BASE

Parameters:
onlyUpdate - If true update, else create and then update