org.ow2.jasmine.deployme.v1
Class DeploymeV1

java.lang.Object
  extended by org.ow2.jasmine.deployme.v1.DeploymeV1
All Implemented Interfaces:
IDeployme

public class DeploymeV1
extends Object
implements IDeployme

Apply the config of the servers(machine or domain/server/cluster)

Author:
Remy Bresson

Field Summary
protected  List<ServerDomain> serversDomains
          List of the servers witch deployMe will work
 
Constructor Summary
DeploymeV1(Topology topology)
          Default constructor *
 
Method Summary
 void applyConfiguration(String machine, String domain, String server, String cluster)
          
 List<ServerDomain> buildServerDomainList(String machine, String domain, String server, String clusterName)
          Build the server list that will be used.
protected  List<ServerDomain> buildServerListWithCluster(String domain, String cluster)
          Build the servers list (in this case, only 1 server in the list) defined by domain.server
 Topology.Domains.Domain.ClusterDaemons.ClusterDaemon getClusterDaemonConf(String domain, String clusterName)
           
 Topology getTopology()
          Getter for topology.
 Topology.Domains.Domain.ClusterDaemons.ClusterDaemon mergeClusterDaemonAndDomainConf(Topology.Domains.Domain.ClusterDaemons.ClusterDaemon cd, Topology.Domains.Domain domain)
          Merge the configuration of the domain with the configuration of the cluster daemon
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serversDomains

protected List<ServerDomain> serversDomains
List of the servers witch deployMe will work

Constructor Detail

DeploymeV1

public DeploymeV1(Topology topology)
Default constructor *

Method Detail

getTopology

public Topology getTopology()
Getter for topology.

Returns:
the topology

applyConfiguration

public void applyConfiguration(String machine,
                               String domain,
                               String server,
                               String cluster)

Specified by:
applyConfiguration in interface IDeployme

getClusterDaemonConf

public Topology.Domains.Domain.ClusterDaemons.ClusterDaemon getClusterDaemonConf(String domain,
                                                                                 String clusterName)

buildServerDomainList

public List<ServerDomain> buildServerDomainList(String machine,
                                                String domain,
                                                String server,
                                                String clusterName)
Build the server list that will be used.

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

buildServerListWithCluster

protected List<ServerDomain> buildServerListWithCluster(String domain,
                                                        String cluster)
Build the servers list (in this case, only 1 server in the list) defined by domain.server

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

mergeClusterDaemonAndDomainConf

public Topology.Domains.Domain.ClusterDaemons.ClusterDaemon mergeClusterDaemonAndDomainConf(Topology.Domains.Domain.ClusterDaemons.ClusterDaemon cd,
                                                                                            Topology.Domains.Domain domain)
Merge the configuration of the domain with the configuration of the cluster daemon

Parameters:
cd - cluster daemon configuration
domain - the domain
Returns:
the merged configuration


Copyright © 2012 OW2 Consortium. All Rights Reserved.