org.figure8.join.businessobjects.environment
Class PhysicalEnvironment

java.lang.Object
  extended by org.figure8.join.core.EntityObject
      extended by org.figure8.join.businessobjects.environment.PhysicalEnvironment
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class PhysicalEnvironment
extends EntityObject

This is the representation of a physical environment managed by Join.
A PhysicalEnvironment has no knowledge of the integration process step and release for whom it is used. Is defines a purely technical place which is composed of infrastructure elements or resources (services, versioned resources and gateways) hosted on many machines.

Version:
$Revision: 1.1 $
Author:
Laurent Broudoux
See Also:
Machine, Resource, Serialized Form

Constructor Summary
PhysicalEnvironment()
          Creates a new instance of PhysicalEnvironment.
PhysicalEnvironment(java.lang.String key, java.lang.String name)
          Creates a new instance of PhysicalEnvironment with mandatory attributes.
 
Method Summary
 void addActiveResourceMapping(ResourceMapping mapping)
          Convenient method for adding a mapped resource into mapping list This method closes the previously existing mapping for this kind of resource.
 EnvironmentMapping getActiveEnvironmentMapping()
          Get the most recent active EnvironmentMapping for this environment
 java.util.List getActiveEnvironmentMappings()
           
 java.util.List getActiveResourceMappings()
           
 java.lang.String getKey()
           
 java.lang.String getName()
           
 void setActiveEnvironmentMapping(EnvironmentMapping mapping)
           
 void setActiveEnvironmentMappings(java.util.List mappings)
           
 void setActiveResourceMappings(java.util.List mappings)
           
 void setKey(java.lang.String key)
           
 void setName(java.lang.String name)
           
 
Methods inherited from class org.figure8.join.core.EntityObject
clone, equals, getId, hashCode, isTransient
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PhysicalEnvironment

public PhysicalEnvironment()
Creates a new instance of PhysicalEnvironment.


PhysicalEnvironment

public PhysicalEnvironment(java.lang.String key,
                           java.lang.String name)
Creates a new instance of PhysicalEnvironment with mandatory attributes.

Parameters:
key - The key of this environment
name - The display name for this environment
Method Detail

getKey

public java.lang.String getKey()
Returns:
This environment unique key

setKey

public void setKey(java.lang.String key)
Parameters:
key - This environment unique key

getName

public java.lang.String getName()
Returns:
This environment distinct name

setName

public void setName(java.lang.String name)
Parameters:
name - This environment display name

getActiveEnvironmentMappings

public java.util.List getActiveEnvironmentMappings()
Returns:
A set of EnvironmentMappings that are active now

setActiveEnvironmentMappings

public void setActiveEnvironmentMappings(java.util.List mappings)
Parameters:
mappings - The set of EnvironmentMappings that are active now

getActiveEnvironmentMapping

public EnvironmentMapping getActiveEnvironmentMapping()
Get the most recent active EnvironmentMapping for this environment

Returns:
The last mapping that has been created

setActiveEnvironmentMapping

public void setActiveEnvironmentMapping(EnvironmentMapping mapping)
Parameters:
mapping - The EnvironmentMapping to set as active one

getActiveResourceMappings

public java.util.List getActiveResourceMappings()
Returns:
A set of ResourceMappings that are active now

setActiveResourceMappings

public void setActiveResourceMappings(java.util.List mappings)
Parameters:
mappings - The set of ResourceMappings that are active now

addActiveResourceMapping

public void addActiveResourceMapping(ResourceMapping mapping)
Convenient method for adding a mapped resource into mapping list This method closes the previously existing mapping for this kind of resource.

Parameters:
mapping - The mapping to an infratructure resource to add


Copyright © 2005-2008 Join. All Rights Reserved.