org.ow2.jonas.ant
Class JOnASClusterConfigTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.ow2.jonas.ant.JOnASClusterConfigTask
Direct Known Subclasses:
JOnASClusterConfigTask

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

Class used to create a JOnAS Cluster Configuration

Author:
Benoit Pelletier

Field Summary
static String DEPLOY_DIR_NAME
          Name of deploy directory.
static String[] DEPLOYMENT_PLAN_LIST
          List of deployment plans to copy for each JONAS_BASE.
static String LIB_EXT_DIR_NAME
          Name of lib/ext directory.
static String LOG_DIR_NAME
          Name of logs directory.
 
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 chosen 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 chosen 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(String arch)
          Set architecture
 void setCdDir(String cdDir)
          Set the cluster daemon directory
 void setDestDirPrefix(String destDirPrefix)
          Set the destination directory prefix
 void setEjbInstNb(int ejbInstNb)
          Set the ejb instances number
 void setJonasRoot(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
 

Field Detail

LOG_DIR_NAME

public static final String LOG_DIR_NAME
Name of logs directory.

See Also:
Constant Field Values

DEPLOY_DIR_NAME

public static final String DEPLOY_DIR_NAME
Name of deploy directory.

See Also:
Constant Field Values

LIB_EXT_DIR_NAME

public static final String LIB_EXT_DIR_NAME
Name of lib/ext directory.

See Also:
Constant Field Values

DEPLOYMENT_PLAN_LIST

public static final String[] DEPLOYMENT_PLAN_LIST
List of deployment plans to copy for each JONAS_BASE.

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(String destDirPrefix)
Set the destination directory prefix

Parameters:
destDirPrefix - the destination directory prefix

setCdDir

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

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

setJonasRoot

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

Parameters:
jonasRoot - the source directory

setArch

public void setArch(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 chosen 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 chosen 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


Copyright © 2010 OW2 Consortium. All Rights Reserved.