org.figure8.join.services.workflow
Interface DeploymentRuleSet

All Known Implementing Classes:
YesDeploymentRuleSet

public interface DeploymentRuleSet

This interface represents a set of rule that is invoked by deployment managers when orchestrating deployment process.

Version:
$Revision: 1.2 $
Author:
Laurent Broudoux

Method Summary
 boolean isDeploymentCreationAllowed(Deployment deployment)
          The isDeploymentCreationAllowed method is called by the environment manager when a user wants to ask a new environment update.
 boolean isDeploymentEndingAllowed(Deployment deployment)
          The isDeploymentEndingAllowed method is called by the environment manager when deployment has begun and user wants to finish it.
 boolean isDeploymentPreparationAllowed(Deployment deployment)
          The isDeploymentPreparationAllowed method is called by the environment manager when deployment is created and user wants to launch the preparation of it.
 boolean isDeploymentRealizationAllowed(Deployment deployment)
          The isDeploymentRealizationAllowed method is called by the environment manager when deployment has been prepared and user wants to start it (ie : shutting down services and resources, updating them and restarting them).
 

Method Detail

isDeploymentCreationAllowed

boolean isDeploymentCreationAllowed(Deployment deployment)
The isDeploymentCreationAllowed method is called by the environment manager when a user wants to ask a new environment update. This demand can be allowed or refused depending on : the Join System state, the hour of demand, a demand already done, ...

Parameters:
deployment - The informations on requested deployment
Returns:
true if creation is allowed, false otherwise

isDeploymentPreparationAllowed

boolean isDeploymentPreparationAllowed(Deployment deployment)
The isDeploymentPreparationAllowed method is called by the environment manager when deployment is created and user wants to launch the preparation of it. This demand of preparation can be allowed or refused depending on : the Join System state, the number of update already in preparation, etc ...

Parameters:
deployment - The informations on requested deployment
Returns:
true if preparation is allowed, false otherwise

isDeploymentRealizationAllowed

boolean isDeploymentRealizationAllowed(Deployment deployment)
The isDeploymentRealizationAllowed method is called by the environment manager when deployment has been prepared and user wants to start it (ie : shutting down services and resources, updating them and restarting them). This demand can be allowed or refused depending on : the Join System state, the number of update already running, ...

Parameters:
deployment - The informations on requested deployment
Returns:
true if beginning of update is allowed, false otherwise

isDeploymentEndingAllowed

boolean isDeploymentEndingAllowed(Deployment deployment)
The isDeploymentEndingAllowed method is called by the environment manager when deployment has begun and user wants to finish it. This demand can be allowed or refused depending on : the Join System state, ...

Parameters:
deployment - The informations on requested deployment
Returns:
true if ending of update is allowed, false otherwise


Copyright © 2005-2008 Join. All Rights Reserved.