Groovy Documentation

org.linkedin.glu.orchestration.engine.deployment
[Groovy] Class DeploymentServiceImpl

java.lang.Object
  org.linkedin.glu.orchestration.engine.deployment.DeploymentServiceImpl

class DeploymentServiceImpl

System service.

Authors:
ypujante@linkedin.com


Field Summary
static java.lang.String MODULE

static Logger log

 
Property Summary
AuthorizationService authorizationService

java.lang.Object autoArchiveClosure

run on a regular basis to automatically archive 'old' deployments.

Timespan autoArchiveTimeout

Timespan autoArchiveTimerFrequency

How often to run the auto archive timer

Clock clock

Deployer deployer

DeploymentStorage deploymentStorage

Timespan planCacheTimeout

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

Archive all deployments (that are completed of course)

boolean archiveDeployment(java.lang.String id)

void destroy()

CurrentDeployment executeDeploymentPlan(SystemModel system, Plan plan)

CurrentDeployment executeDeploymentPlan(SystemModel system, 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)

int getArchivedDeploymentsCount(java.lang.String fabric)

Deployment getCurrentOrArchivedDeployment(java.lang.String id)

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)

Plan getPlan(java.lang.String id)

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

boolean isExecutingDeploymentPlan(java.lang.String fabric)

void savePlan(Plan plan)

void start()

 
Methods inherited from class java.lang.Object
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
 

Field Detail

MODULE

public static final java.lang.String MODULE


log

public static final Logger log


 
Property Detail

authorizationService

@Initializable
AuthorizationService authorizationService


autoArchiveClosure

java.lang.Object autoArchiveClosure
run on a regular basis to automatically archive 'old' deployments. YP implementation note: the check on 'old' is based on when the deployment was completed!


autoArchiveTimeout

@Initializable
Timespan autoArchiveTimeout


autoArchiveTimerFrequency

@Initializable
Timespan autoArchiveTimerFrequency
How often to run the auto archive timer


clock

@Initializable
Clock clock


deployer

@Initializable(required = true)
Deployer deployer


deploymentStorage

@Initializable(required = true)
DeploymentStorage deploymentStorage


planCacheTimeout

@Initializable
Timespan planCacheTimeout


 
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)


destroy

@Override
void destroy()


executeDeploymentPlan

CurrentDeployment executeDeploymentPlan(SystemModel system, Plan plan)


executeDeploymentPlan

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


getArchivedDeployment

ArchivedDeployment getArchivedDeployment(java.lang.String id)


getArchivedDeployments

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


getArchivedDeploymentsCount

@Override
int getArchivedDeploymentsCount(java.lang.String fabric)


getCurrentOrArchivedDeployment

@Override
Deployment getCurrentOrArchivedDeployment(java.lang.String id)


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

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


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)


start

@Override
void start()


 

Groovy Documentation