org.ow2.jasmine.deployme.v2.util
Class Agent

java.lang.Object
  extended by org.ow2.jasmine.deployme.v2.util.AbstractServer
      extended by org.ow2.jasmine.deployme.v2.util.Agent
All Implemented Interfaces:
IServer

public class Agent
extends AbstractServer

Represents an agent. An agent is a server with the capability to manage others servers

Author:
Jeremy Cazaux

Field Summary
protected  SimpleContentWithInheritAttribute domainJonasScript
          JOnAS script of the domain
protected  SimpleContentWithInheritAttribute domainsJonasScript
          JOnAS script global to all domains
 
Fields inherited from class org.ow2.jasmine.deployme.v2.util.AbstractServer
availableExtensions, availableModules, domainConfiguration, domainName, domainProperties, domainsConfiguration, domainsProperties, engine, extensions, jonasBase, jonasRoot, logger, serverName, serverProperties, serversConfiguration, serversProperties, updateJonasBase
 
Constructor Summary
Agent(AgentType agent, DomainType domain, DomainsType domains, Boolean merge, List<IDeploymeExtension> availableExtensions, List<IDeploymeModule> availableModules)
          Default constructor
 
Method Summary
 AgentType getAgent()
           
protected  ConfigurationType getServerConfiguration()
          
protected  void merge()
          
protected  void mergeJonasScript()
          Merge the optional JOnAS script
 
Methods inherited from class org.ow2.jasmine.deployme.v2.util.AbstractServer
buildModulesAndExtensions, getDomainName, getExtensions, getJonasBase, getJonasRoot, getModules, getServerName, initProperties, isJonasBaseToUpdate, mergeConfiguration, mergeConfiguration, setJonasBase, setJonasRoot, substituteProperties, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

domainsJonasScript

protected SimpleContentWithInheritAttribute domainsJonasScript
JOnAS script global to all domains


domainJonasScript

protected SimpleContentWithInheritAttribute domainJonasScript
JOnAS script of the domain

Constructor Detail

Agent

public Agent(AgentType agent,
             DomainType domain,
             DomainsType domains,
             Boolean merge,
             List<IDeploymeExtension> availableExtensions,
             List<IDeploymeModule> availableModules)
Default constructor

Parameters:
agent - The agent
domain - The domain of the agent
domains - Domains of the agent
Method Detail

merge

protected void merge()

Overrides:
merge in class AbstractServer

mergeJonasScript

protected void mergeJonasScript()
Merge the optional JOnAS script


getServerConfiguration

protected ConfigurationType getServerConfiguration()

Specified by:
getServerConfiguration in class AbstractServer
Returns:
ConfigurationType of the server

getAgent

public AgentType getAgent()
Returns:
the AgentType


Copyright © 2012 OW2 Consortium. All Rights Reserved.