org.ow2.jonas.ant.cluster
Class ClusterDaemon

java.lang.Object
  extended by org.ow2.jonas.ant.jonasbase.Tasks
      extended by org.ow2.jonas.ant.cluster.ClusterTasks
          extended by org.ow2.jonas.ant.cluster.ClusterDaemon

public class ClusterDaemon
extends ClusterTasks

Configures the cluster daemon

Author:
Benoit Pelletier

Field Summary
 
Fields inherited from class org.ow2.jonas.ant.cluster.ClusterTasks
ARCH_BOTH_WEB_EJB, ARCH_SEPARATED_WEB_EJB
 
Constructor Summary
ClusterDaemon()
          Default constructor
 
Method Summary
 void addServersDefinition()
          Add the servers definition in the clusterd.xml
 void generatesTasks()
          Generates the script tasks
 void setAutoBoot(String autoBoot)
          Set auto boot
 void setCdDir(String cdDir)
          cluster daemon directory
 void setClusterNodesName(String clusterNodesName)
          set the name prefix for the cluster nodes
 void setDomainName(String domainName)
          Set the domain name
 void setInstNb(int instNb)
          Set nodes number
 void setInteractionMode(String interactionMode)
          interaction mode
 void setJdk(String jdk)
          jdk to use
 void setJonasRoot(String jonasRoot)
          Set JONAS_ROOT
 void setName(String name)
          Set the name
 void setPort(String port)
          port number
 void setProtocol(String protocol)
          set the protocol
 void setXprm(String xprm)
          Set xprm
 void updateCarol()
          update the carol.propertier
 void updateDomainName()
          update the domain name
 void updateInteractionMode()
          update the interaction mode
 void updateName()
          update the name
 
Methods inherited from class org.ow2.jonas.ant.cluster.ClusterTasks
addClusterTask, getArch, getClusterTasks, getDestDir, getDestDirPrefix, getDestDirSuffixIndFirst, getDestDirSuffixIndLast, getEjbInstNb, getLogInfo, getRootTask, getWebInstNb, log, setArch, setDestDirPrefix, setDestDirSuffixIndFirst, setDestDirSuffixIndLast, setEjbInstNb, setLogInfo, setRootTask, setWebInstNb
 
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

ClusterDaemon

public ClusterDaemon()
Default constructor

Method Detail

addServersDefinition

public void addServersDefinition()
Add the servers definition in the clusterd.xml


updateName

public void updateName()
update the name


updateDomainName

public void updateDomainName()
update the domain name


updateInteractionMode

public void updateInteractionMode()
update the interaction mode


updateCarol

public void updateCarol()
update the carol.propertier


setInstNb

public void setInstNb(int instNb)
Set nodes number

Parameters:
instNb - nodes nb

setCdDir

public void setCdDir(String cdDir)
cluster daemon directory

Parameters:
cdDir - directory

setName

public void setName(String name)
Set the name

Parameters:
name - name

setDomainName

public void setDomainName(String domainName)
Set the domain name

Parameters:
domainName - domain name

setInteractionMode

public void setInteractionMode(String interactionMode)
interaction mode

Parameters:
interactionMode - loosely/tighly coupled

setJdk

public void setJdk(String jdk)
jdk to use

Parameters:
jdk - jdk

setPort

public void setPort(String port)
port number

Parameters:
port - port number

setProtocol

public void setProtocol(String protocol)
set the protocol

Parameters:
protocol - protocol

setJonasRoot

public void setJonasRoot(String jonasRoot)
Set JONAS_ROOT

Parameters:
jonasRoot - JONAS_ROOT

setClusterNodesName

public void setClusterNodesName(String clusterNodesName)
set the name prefix for the cluster nodes

Parameters:
clusterNodesName - prefix of the nodes names in the cluster

setAutoBoot

public void setAutoBoot(String autoBoot)
Set auto boot

Parameters:
autoBoot - true/false

setXprm

public void setXprm(String xprm)
Set xprm

Parameters:
xprm - xprm

generatesTasks

public void generatesTasks()
Generates the script tasks

Specified by:
generatesTasks in class ClusterTasks


Copyright © 2010 OW2 Consortium. All Rights Reserved.