org.ow2.jasmine.deployme.v2
Class DeploymeV2

java.lang.Object
  extended by org.ow2.jasmine.deployme.v2.DeploymeV2
All Implemented Interfaces:
IDeployme

public class DeploymeV2
extends Object
implements IDeployme

Manage Deployme 2.0 XML resources

Author:
Jeremy Cazaux

Constructor Summary
DeploymeV2(TopologyType topology, List<IDeploymeExtension> deploymeExtensions, List<IDeploymeModule> deploymeModules)
          Default constructor
 
Method Summary
 void applyConfiguration(String machine, String domainName, String serverName, String clusterName)
          
 List<Server> buildServerList(String machine, String domainName, String serverName, String clusterName)
          Build the server list that will be used.
protected  List<Server> buildServerListManagedByAgent(String domainName, String clusterName)
          Build the servers list (in this case, only 1 server in the list) defined by domain.server
protected  List<Server> buildServerListWithHostname(String machine)
          Build the servers list hosted by the machine machine
protected  List<Server> buildServerListWithServer(String domainName, String serverName)
          Build the servers list (in this case, only 1 server in the list) defined by domain.server
protected  Agent getAgent(String domainName, String clusterName)
          Build the agent
 Server getServer(String domainName, String serverName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeploymeV2

public DeploymeV2(TopologyType topology,
                  List<IDeploymeExtension> deploymeExtensions,
                  List<IDeploymeModule> deploymeModules)
Default constructor

Parameters:
topology - The TopologyType to set
deploymeExtensions - List of extensions to set
Method Detail

applyConfiguration

public void applyConfiguration(String machine,
                               String domainName,
                               String serverName,
                               String clusterName)

Specified by:
applyConfiguration in interface IDeployme

buildServerList

public List<Server> buildServerList(String machine,
                                    String domainName,
                                    String serverName,
                                    String clusterName)
Build the server list that will be used.

Parameters:
machine - host name
domainName - domain name
serverName - server name
clusterName - cluster daemon name
Returns:
A list with the server to configure

buildServerListWithHostname

protected List<Server> buildServerListWithHostname(String machine)
Build the servers list hosted by the machine machine

Parameters:
machine - The machine where are located the servers to configure
Returns:
A list with the servers to configure

buildServerListWithServer

protected List<Server> buildServerListWithServer(String domainName,
                                                 String serverName)
Build the servers list (in this case, only 1 server in the list) defined by domain.server

Parameters:
domainName - the name of the target domain
serverName - the name of the target server
Returns:
A list with the server to configure

getAgent

protected Agent getAgent(String domainName,
                         String clusterName)
Build the agent

Parameters:
domainName - the name of the domain
clusterName - the name of the agent
Returns:
the associated Agent

buildServerListManagedByAgent

protected List<Server> buildServerListManagedByAgent(String domainName,
                                                     String clusterName)
Build the servers list (in this case, only 1 server in the list) defined by domain.server

Parameters:
domainName - the domain
clusterName - the cluster
Returns:
A list with the server to configure

getServer

public Server getServer(String domainName,
                        String serverName)
Parameters:
domainName - the domain name
serverName - the server name
Returns:
the Server


Copyright © 2012 OW2 Consortium. All Rights Reserved.