org.figure8.join.businessobjects.environment
Class EnvironmentMapping

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

public class EnvironmentMapping
extends EntityObject

This is an entity representing a mapping between a logical environment (attached to a specific process step and release) and a physical environment (attached to infrastructure resources and machines).
EnvironmentMappings are by definition volatile : they have a startDate and an endDate when mapping ends. Active mappings are those having endDate not set.

Version:
$Revision: 1.4 $
Author:
Laurent Broudoux
See Also:
LogicalEnvironment, PhysicalEnvironment, Serialized Form

Constructor Summary
EnvironmentMapping()
          Creates a new EnvironmentMapping.
EnvironmentMapping(LogicalEnvironment logicalEnv, PhysicalEnvironment physicalEnv)
          Creates a new EnvironmentMapping with mandatory parameters.
 
Method Summary
 void addDeployment(Deployment deployment)
          Convenient method for adding a deployment to this mapping and managing the 2 sides of the bidirectionnal relationship.
 void close()
          Close this mapping (ie. make it inactive)
 java.util.List getDeployments()
           
 java.util.Date getEndDate()
           
 Deployment getLastDeployment()
          Convenient method for getting the last deployment done with this mapping.
 LogicalEnvironment getLogicalEnvironment()
           
 PhysicalEnvironment getPhysicalEnvironment()
           
 java.util.Date getStartDate()
           
 boolean isActive()
           
 void setDeployments(java.util.List deployments)
           
 void setEndDate(java.util.Date endDate)
           
 void setLogicalEnvironment(LogicalEnvironment logicalEnvironment)
           
 void setPhysicalEnvironment(PhysicalEnvironment physicalEnvironment)
           
 void setStartDate(java.util.Date startDate)
           
 
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

EnvironmentMapping

public EnvironmentMapping()
Creates a new EnvironmentMapping.


EnvironmentMapping

public EnvironmentMapping(LogicalEnvironment logicalEnv,
                          PhysicalEnvironment physicalEnv)
Creates a new EnvironmentMapping with mandatory parameters.

Parameters:
logicalEnv - The logical environment this mapping is for
physicalEnv - The physical environment this mapping is for
Method Detail

getStartDate

public java.util.Date getStartDate()
Returns:
The date this mapping has started being active

setStartDate

public void setStartDate(java.util.Date startDate)
Parameters:
startDate - The date this mapping has started being active

getEndDate

public java.util.Date getEndDate()
Returns:
The date this mapping has stopped being active

setEndDate

public void setEndDate(java.util.Date endDate)
Parameters:
endDate - The date this mapping has stopped being active

getDeployments

public java.util.List getDeployments()
Returns:
A set of Deploymentss done during mapping activity

setDeployments

public void setDeployments(java.util.List deployments)
Parameters:
deployments - The set of Deployments done during mapping activity

addDeployment

public void addDeployment(Deployment deployment)
Convenient method for adding a deployment to this mapping and managing the 2 sides of the bidirectionnal relationship.

Parameters:
deployment - The deployment to add on this

getLastDeployment

public Deployment getLastDeployment()
Convenient method for getting the last deployment done with this mapping.

Returns:
The last deployment that has been completed for this mapping.

getLogicalEnvironment

public LogicalEnvironment getLogicalEnvironment()
Returns:
The logical environment this mapping is for

setLogicalEnvironment

public void setLogicalEnvironment(LogicalEnvironment logicalEnvironment)
Parameters:
logicalEnvironment - The logical environment this mapping is for

getPhysicalEnvironment

public PhysicalEnvironment getPhysicalEnvironment()
Returns:
The physical environment this mapping is for

setPhysicalEnvironment

public void setPhysicalEnvironment(PhysicalEnvironment physicalEnvironment)
Parameters:
physicalEnvironment - The physical environment this mapping is for

isActive

public boolean isActive()
Returns:
Flag telling if this mapping is currently active

close

public void close()
Close this mapping (ie. make it inactive)



Copyright © 2005-2008 Join. All Rights Reserved.