|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.figure8.join.businessfacades.environment.DefaultEnvironmentManager
public class DefaultEnvironmentManager
This is the default implementation of EnvironmentManager.
| Constructor Summary | |
|---|---|
DefaultEnvironmentManager()
Creates a new instance of DefaultEnvironmentManager. |
|
| Method Summary | |
|---|---|
void |
cancelDeployment(Deployment deployment,
java.lang.String comments)
Cancel a deployment process whether it is in preparation phase or in realization phase. |
void |
closeEnvironmentMapping(EnvironmentMapping mapping)
Closes the specified EnvironmentMapping. |
void |
createDeployment(Deployment deployment)
Create a Deployment informations : this is the beginning step of a Deployment lifecycle. |
void |
endDeployment(Deployment deployment,
java.lang.String comments)
End a deployment process : this is the final step into this process. |
Deployment |
getDeployment(long id)
Retrieve a Deployment using its unique identifier |
java.util.List |
getDeployments(LogicalEnvironment environment)
Retrieve all the deployments realized for a logical environment |
java.util.List |
getDeployments(PhysicalEnvironment environment)
Retrieve all the deployments realized onto a physical environment |
EnvironmentMapping |
getEnvironmentMapping(long id)
Retrieve an EnvironmentMapping using its unique identifier |
EnvironmentMapping |
getEnvironmentMappingAtDate(LogicalEnvironment environment,
java.util.Date configDate)
Retrieve EnvironmentMapping that was active for an environment at specified date |
java.util.List |
getEnvironmentMappings(LogicalEnvironment environment)
Retrieve all the environment mappings for a LogicalEnvironment through time |
java.util.List |
getEnvironmentMappings(PhysicalEnvironment environment)
Retrieve all the environment mappings for a PhysicalEnvironment through time |
EnvironmentView |
getEnvironmentView(LogicalEnvironment environment)
Build an EnvironmentView object from a Logical environment instance. |
LogicalEnvironment |
getLogicalEnvironment(long id)
Retrieve a logical environment using its entity identifier |
LogicalEnvironment |
getLogicalEnvironment(java.lang.String key)
Retrieve a logical environment using its key |
java.util.List |
getLogicalEnvironments()
Retrieve all the defained logical environments. |
PhysicalEnvironment |
getPhysicalEnvironment(long id)
Retrieve a physical enviornment using its entity identifier |
PhysicalEnvironment |
getPhysicalEnvironment(java.lang.String key)
Retrieve a physical environment using its key |
PhysicalEnvironment |
getPhysicalEnvironmentAtDate(java.lang.String key,
java.util.Date configDate)
Get a view representing physical environment configuration at a specified date |
java.util.List |
getPhysicalEnvironments()
Retrieve all the defined physical environments. |
PhysicalEnvironmentTrackingView |
getPhysicalEnvironmentTrackingView(java.lang.String key,
java.util.Date startDate,
java.util.Date endDate)
Get a configuration changes traking view for a specified physical environment on a specified time period (between start date and end date included). |
java.util.List |
getPreparingDeployments()
Get all the deployments being in preparation stage at that time |
java.util.List |
getRealizingDeployments()
Get all the deployments being in realization stage at that time |
void |
mapEnvironments(LogicalEnvironment logicalEnv,
PhysicalEnvironment physicalEnv)
Create a new mapping of a logical environment onto a physical one. |
void |
prepareDeployment(Deployment deployment)
Start preparation process of a Deployment : this is the second step of deployment lifecycle. |
void |
realizeDeployment(Deployment deployment)
Start the realization process of a Deployment : this is a step that must follow the "prepared" state of deployment. |
void |
saveDeployment(Deployment deployment)
Save a Deployment informations within datastore (create or update) |
void |
saveLogicalEnvironment(LogicalEnvironment environment)
Save a LogicalEnvironment within datastore (create or update) |
void |
savePhysicalEnvironment(PhysicalEnvironment environment)
Save a PhysicalEnvironment within datastore (create or update) |
void |
setDeploymentDao(DeploymentDao deploymentDao)
|
void |
setDeploymentRuleSet(DeploymentRuleSet rules)
|
void |
setEnvMappingDao(EnvironmentMappingDao envMappingDao)
|
void |
setEventPublicationManager(EventPublicationManager publicationManager)
|
void |
setIntegrationProcessManager(IntegrationProcessManager processManager)
|
void |
setLogicalEnvDao(LogicalEnvironmentDao logicalEnvDao)
|
void |
setPhysicalEnvDao(PhysicalEnvironmentDao physicalEnvDao)
|
void |
setResourceManager(ResourceManager resourceManager)
|
void |
setResourceMappingDao(ResourceMappingDao resourceMappingDao)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultEnvironmentManager()
| Method Detail |
|---|
public void setDeploymentDao(DeploymentDao deploymentDao)
deploymentDao - The DeploymentDao implementation to usepublic void setEnvMappingDao(EnvironmentMappingDao envMappingDao)
envMappingDao - The EnvironmentMappingdao implementation to usepublic void setLogicalEnvDao(LogicalEnvironmentDao logicalEnvDao)
logicalEnvDao - The LogicalEnvironemntDao implementation to usepublic void setPhysicalEnvDao(PhysicalEnvironmentDao physicalEnvDao)
physicalEnvDao - The PhysicalEnvironmentDao implementation to usepublic void setResourceMappingDao(ResourceMappingDao resourceMappingDao)
resourceMappingDao - The ResourceMappingDao implementation to usepublic void setResourceManager(ResourceManager resourceManager)
resourceManager - The ResourceManager implementation to usepublic void setIntegrationProcessManager(IntegrationProcessManager processManager)
processManager - The IntegrationProcessManager implementation to usepublic void setEventPublicationManager(EventPublicationManager publicationManager)
publicationManager - The EventPublicationManager implementation to usepublic void setDeploymentRuleSet(DeploymentRuleSet rules)
rules - The ruleset managing deployment process workflow
public void saveLogicalEnvironment(LogicalEnvironment environment)
throws DuplicateEntityException
saveLogicalEnvironment in interface EnvironmentManagerenvironment - The logical environment to save
DuplicateEntityException - if an environment with same key already existspublic java.util.List getLogicalEnvironments()
getLogicalEnvironments in interface EnvironmentManagerorg.figure8.join.businessobjects.environment.LogicalEnvironment objectspublic LogicalEnvironment getLogicalEnvironment(long id)
getLogicalEnvironment in interface EnvironmentManagerid - The unique identifier of environment to retrieve
public LogicalEnvironment getLogicalEnvironment(java.lang.String key)
getLogicalEnvironment in interface EnvironmentManagerkey - The key of environment to retrieve
public EnvironmentView getEnvironmentView(LogicalEnvironment environment)
EnvironmentView object from a Logical environment instance. A view
is a consolidated object aroung logical environmnet allowing to embbed related infos.
getEnvironmentView in interface EnvironmentManagerenvironment - The logical environemnt to get a view for
public EnvironmentMapping getEnvironmentMapping(long id)
getEnvironmentMapping in interface EnvironmentManagerid - The unique identifier of mapping to retrieve
public java.util.List getEnvironmentMappings(LogicalEnvironment environment)
getEnvironmentMappings in interface EnvironmentManagerenvironment - The logical environment to retrieve mappings for
EnvironmentMapping objects for this logical environmnetpublic java.util.List getEnvironmentMappings(PhysicalEnvironment environment)
getEnvironmentMappings in interface EnvironmentManagerenvironment - The physical environment to retrieve mappings for
EnvironmentMapping objects for this physical environment
public EnvironmentMapping getEnvironmentMappingAtDate(LogicalEnvironment environment,
java.util.Date configDate)
getEnvironmentMappingAtDate in interface EnvironmentManagerenvironment - The LogicalEnvironment to retrieve mapping forconfigDate - The date to retrieve active mapping
EnvironmentMapping at date
or null if no one was active
public void mapEnvironments(LogicalEnvironment logicalEnv,
PhysicalEnvironment physicalEnv)
mapEnvironments in interface EnvironmentManagerlogicalEnv - The logical environment to map onto physicalphysicalEnv - The physical environment to be mapped with logicalpublic void closeEnvironmentMapping(EnvironmentMapping mapping)
closeEnvironmentMapping in interface EnvironmentManagermapping - The EnvironmentMapping to close
public void savePhysicalEnvironment(PhysicalEnvironment environment)
throws DuplicateEntityException
savePhysicalEnvironment in interface EnvironmentManagerenvironment - The physical environment to save
DuplicateEntityException - if an environment with same key already existspublic java.util.List getPhysicalEnvironments()
getPhysicalEnvironments in interface EnvironmentManagerorg.figure8.join.businessobjects.environment.PhysicalEnvironment objectspublic PhysicalEnvironment getPhysicalEnvironment(long id)
getPhysicalEnvironment in interface EnvironmentManagerid - The unique identifier of environment to retrieve
public PhysicalEnvironment getPhysicalEnvironment(java.lang.String key)
getPhysicalEnvironment in interface EnvironmentManagerkey - The key of environment to retrieve
public PhysicalEnvironment getPhysicalEnvironmentAtDate(java.lang.String key,
java.util.Date configDate)
getPhysicalEnvironmentAtDate in interface EnvironmentManagerkey - The key of environment to retrieve a configuration view forconfigDate - The date to get environment configuration
public PhysicalEnvironmentTrackingView getPhysicalEnvironmentTrackingView(java.lang.String key,
java.util.Date startDate,
java.util.Date endDate)
getPhysicalEnvironmentTrackingView in interface EnvironmentManagerkey - The key of environment to retrieve a tracking view forstartDate - The date to start the configuration changes trackingendDate - The date to and the configuration changes tracking
public void saveDeployment(Deployment deployment)
saveDeployment in interface EnvironmentManagerdeployment - The deployment information to save
public void createDeployment(Deployment deployment)
throws OperationNotAllowedException
createDeployment in interface EnvironmentManagerdeployment - The deployment information to create
OperationNotAllowedException - if deployment cannot be done depending on workflow rulespublic void prepareDeployment(Deployment deployment)
prepareDeployment in interface EnvironmentManagerdeployment - The deployment to start preparation process for
public void realizeDeployment(Deployment deployment)
throws OperationNotAllowedException
realizeDeployment in interface EnvironmentManagerdeployment - The deployment to start realization process for
OperationNotAllowedException - if deployment cannot be realized depending on workflow rules
public void cancelDeployment(Deployment deployment,
java.lang.String comments)
cancelDeployment in interface EnvironmentManagerdeployment - The informations on deployment process to cancelcomments - Comments on deployment cancelling
public void endDeployment(Deployment deployment,
java.lang.String comments)
throws OperationNotAllowedException
endDeployment in interface EnvironmentManagerdeployment - The informations on deployment process to endcomments - Comments on deployment end
OperationNotAllowedException - if deployment cannot be ended depending on workflow rulespublic java.util.List getPreparingDeployments()
getPreparingDeployments in interface EnvironmentManagerDeployments
having a status corresponding to preparation processpublic java.util.List getRealizingDeployments()
getRealizingDeployments in interface EnvironmentManagerDeployments
having a status corresponding to realization processpublic java.util.List getDeployments(LogicalEnvironment environment)
getDeployments in interface EnvironmentManagerenvironment - The LogicalEnvironment we wants deployments for
Deployments done for the specified logical environmentpublic java.util.List getDeployments(PhysicalEnvironment environment)
getDeployments in interface EnvironmentManagerenvironment - The PhysicalEnvironment we want deployments for
Deployments done onto the specified physical environmentpublic Deployment getDeployment(long id)
getDeployment in interface EnvironmentManagerid - The identifier of deployment to retrieve
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||