org.figure8.join.businessobjects.environment
Class Deployment

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

public class Deployment
extends EntityObject

This is an entity object that represent a deployment of an Assembly done onto an environement. Such a deployment represents also a process and thus can be tracked through the application of a Status onto entity. Deployments can be scoped using the appropriate deployment Target.
The runtime context of a deployment is always an environment mapping (i.e. when a logical environment is mapped onto a physical environment hosting resources)

Version:
$Revision: 1.4 $
Author:
Laurent Broudoux
See Also:
Status, Target, Assembly, EnvironmentMapping, Serialized Form

Constructor Summary
Deployment()
          Creates a new instance of Deployment
Deployment(java.lang.String applicantId, java.lang.String applicantComments, EnvironmentMapping mapping, Assembly assembly, Target target)
          Creates a new instance of Deployment with mandatory attributes.
 
Method Summary
 boolean completed()
           
 java.lang.String getApplicantComments()
           
 java.lang.String getApplicantId()
           
 Assembly getAssembly()
           
 java.util.Date getAssignationDate()
           
 java.lang.String getAssigneeComments()
           
 java.lang.String getAssigneeId()
           
 java.util.Date getCreationDate()
           
 EnvironmentMapping getEnvironmentMapping()
           
 java.util.Date getRealizationDate()
           
 Status getStatus()
           
 Target getTarget()
           
 java.util.Date getWishedDate()
           
 void setApplicantComments(java.lang.String comments)
           
 void setApplicantId(java.lang.String applicantId)
           
 void setAssembly(Assembly assembly)
           
 void setAssignationDate(java.util.Date assignationDate)
           
 void setAssigneeComments(java.lang.String comments)
           
 void setAssigneeId(java.lang.String assigneeId)
           
 void setCreationDate(java.util.Date creationDate)
           
 void setEnvironmentMapping(EnvironmentMapping environmentMapping)
           
 void setRealizationDate(java.util.Date realizationDate)
           
 void setStatus(Status status)
           
 void setTarget(Target target)
           
 void setWishedDate(java.util.Date wishedDate)
           
 
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

Deployment

public Deployment()
Creates a new instance of Deployment


Deployment

public Deployment(java.lang.String applicantId,
                  java.lang.String applicantComments,
                  EnvironmentMapping mapping,
                  Assembly assembly,
                  Target target)
Creates a new instance of Deployment with mandatory attributes.

Parameters:
applicantId - Identifier of user who asked for deployment
applicantComments - Comments on deployment demand made by applicant
mapping - runtime environment context to use for deployment
assembly - Assembly to deploy onto environment
target - The target of deployment process
Method Detail

getApplicantId

public java.lang.String getApplicantId()
Returns:
The identifier of user who asked for deployment

setApplicantId

public void setApplicantId(java.lang.String applicantId)
Parameters:
applicantId - The identifier of user who asked for deployment

getApplicantComments

public java.lang.String getApplicantComments()
Returns:
The comments made by applicant on deployment demand

setApplicantComments

public void setApplicantComments(java.lang.String comments)
Parameters:
comments - The comments made by applicant on deployment demand

getAssigneeId

public java.lang.String getAssigneeId()
Returns:
The identifier of user assigned to deployment realization

setAssigneeId

public void setAssigneeId(java.lang.String assigneeId)
Parameters:
assigneeId - The identifier of user assigned to deployment realization

getAssigneeComments

public java.lang.String getAssigneeComments()
Returns:
The comments on deployment from assignee

setAssigneeComments

public void setAssigneeComments(java.lang.String comments)
Parameters:
comments - The comments on deployment from assignee

getCreationDate

public java.util.Date getCreationDate()
Returns:
The creation date of the deployment demand

setCreationDate

public void setCreationDate(java.util.Date creationDate)
Parameters:
creationDate - The creation date of the deployment demand

getAssignationDate

public java.util.Date getAssignationDate()
Returns:
The deployment demand assignation date

setAssignationDate

public void setAssignationDate(java.util.Date assignationDate)
Parameters:
assignationDate - The date deployment realization is assigned to an integrator

getRealizationDate

public java.util.Date getRealizationDate()
Returns:
The deployment realization date

setRealizationDate

public void setRealizationDate(java.util.Date realizationDate)
Parameters:
realizationDate - The deployment realization timestamp

getWishedDate

public java.util.Date getWishedDate()
Returns:
The date applicant wished the deployment's done

setWishedDate

public void setWishedDate(java.util.Date wishedDate)
Parameters:
wishedDate - The date application wished the deployment's done

getStatus

public Status getStatus()
Returns:
The current status of this Deployment

setStatus

public void setStatus(Status status)
Parameters:
status - The current status of this deployment

getTarget

public Target getTarget()
Returns:
The deployment target to use for process

setTarget

public void setTarget(Target target)
Parameters:
target - The deployment target to use for process

getAssembly

public Assembly getAssembly()
Returns:
The assembly to deploy during this deployment

setAssembly

public void setAssembly(Assembly assembly)
Parameters:
assembly - The assembly that is deployed during this deployment

getEnvironmentMapping

public EnvironmentMapping getEnvironmentMapping()
Returns:
The mapping that is runtime environment context for deployment

setEnvironmentMapping

public void setEnvironmentMapping(EnvironmentMapping environmentMapping)
Parameters:
environmentMapping - The mapping that is runtime environment context for deployment

completed

public boolean completed()
Returns:
Flag telling if this deployment is completed


Copyright © 2005-2008 Join. All Rights Reserved.