Groovy Documentation

org.linkedin.glu.orchestration.engine.deployment
[Groovy] Interface DeploymentService


interface DeploymentService

System service.

Authors:
ypujante@linkedin.com


Method Summary
int archiveAllDeployments(java.lang.String fabric)

Archive all deployments (that are completed of course)

boolean archiveDeployment(java.lang.String id)

@return true if the deployment was archived, false if there is no such deployment

CurrentDeployment executeDeploymentPlan(SystemModel model, Plan plan)

CurrentDeployment executeDeploymentPlan(SystemModel model, Plan plan, java.lang.String description, IPlanExecutionProgressTracker progressTracker)

ArchivedDeployment getArchivedDeployment(java.lang.String id)

java.util.Map getArchivedDeployments(java.lang.String fabric, boolean includeDetails, java.lang.Object params)

params can be what grails accept for paginating queries: max, offset, sort, order

int getArchivedDeploymentsCount(java.lang.String fabric)

@return number of archived deployments in this fabric

Deployment getCurrentOrArchivedDeployment(java.lang.String id)

If the deployment is not archived yet, then simply return it otherwise return the archived version

CurrentDeployment getDeployment(java.lang.String id)

java.util.Collection getDeployments(java.lang.String fabric)

java.util.Collection getDeployments(java.lang.String fabric, groovy.lang.Closure closure)

Returns all the deployments matching the closure

java.util.Collection getDeployments(java.lang.String fabric, java.lang.String planId)

Returns all the deployments for the current plan

Plan getPlan(java.lang.String id)

java.util.Collection getPlans(java.lang.String fabric)

boolean isExecutingDeploymentPlan(java.lang.String fabric)

void savePlan(Plan plan)

 

Method Detail

archiveAllDeployments

int archiveAllDeployments(java.lang.String fabric)
Archive all deployments (that are completed of course)
Returns:
the number of archived deployments


archiveDeployment

boolean archiveDeployment(java.lang.String id)
throws:
IllegalStateException if the deployment is running (cannot be archived while still running!)
Returns:
true if the deployment was archived, false if there is no such deployment


executeDeploymentPlan

CurrentDeployment executeDeploymentPlan(SystemModel model, Plan plan)


executeDeploymentPlan

CurrentDeployment executeDeploymentPlan(SystemModel model, Plan plan, java.lang.String description, IPlanExecutionProgressTracker progressTracker)


getArchivedDeployment

ArchivedDeployment getArchivedDeployment(java.lang.String id)


getArchivedDeployments

java.util.Map getArchivedDeployments(java.lang.String fabric, boolean includeDetails, java.lang.Object params)
params can be what grails accept for paginating queries: max, offset, sort, order
Returns:
a map with deployments: the list of archived deployments and count: the total number of entries


getArchivedDeploymentsCount

int getArchivedDeploymentsCount(java.lang.String fabric)
Returns:
number of archived deployments in this fabric


getCurrentOrArchivedDeployment

Deployment getCurrentOrArchivedDeployment(java.lang.String id)
If the deployment is not archived yet, then simply return it otherwise return the archived version


getDeployment

CurrentDeployment getDeployment(java.lang.String id)


getDeployments

java.util.Collection getDeployments(java.lang.String fabric)


getDeployments

java.util.Collection getDeployments(java.lang.String fabric, groovy.lang.Closure closure)
Returns all the deployments matching the closure


getDeployments

java.util.Collection getDeployments(java.lang.String fabric, java.lang.String planId)
Returns all the deployments for the current plan


getPlan

Plan getPlan(java.lang.String id)


getPlans

java.util.Collection getPlans(java.lang.String fabric)


isExecutingDeploymentPlan

boolean isExecutingDeploymentPlan(java.lang.String fabric)


savePlan

void savePlan(Plan plan)


 

Groovy Documentation