Groovy Documentation

org.linkedin.glu.orchestration.engine.planner
[Groovy] Class PlannerServiceImpl

java.lang.Object
  org.linkedin.glu.orchestration.engine.planner.PlannerServiceImpl

class PlannerServiceImpl

System service.

Authors:
ypujante@linkedin.com


Property Summary
AgentsService agentsService

java.lang.String autoUpgradeScriptClassname

DeltaMgr deltaMgr

FabricService fabricService

groovy.lang.Closure planIdFactory

Planner planner

PluginService pluginService

 
Method Summary
Plan computeAgentsCleanupUpgradePlan(java.lang.Object params, java.lang.Object metadata)

Computes the deployment plan for cleaning any upgrade that failed

Plan computeAgentsUpgradePlan(java.lang.Object params, java.lang.Object metadata)

Computes the deployment plan for upgrading agents

java.util.Collection computeBouncePlans(java.lang.Object params, java.lang.Object metadata)

Compute a bounce plan to bounce (= stop/start) containers.

java.util.Collection computeDeployPlans(java.lang.Object params, java.lang.Object metadata)

Compute deployment plans between the system provided (params.system) and the current system.

java.util.Collection computeDeploymentPlans(java.lang.Object params, java.lang.Object metadata, java.lang.Object expectedModelFilter, java.lang.Object currentModelFilter, DeltaSystemModelFilter filter, java.util.Collection toStates)

Compute deployment plans by doing the following:

  1. compute delta between expected model (params.system) and current model (computed)
  2. compute the deployment plan(s) (closure callback) (use params.stepType if a given type only is required
  3. set various metadata on the plan(s) as well as the name

Plan computePlan(java.lang.Object params, java.lang.Object metadata)

Generic call which defines which plan to create with the params.planType parameter and allow for a plugin to take over entirely.

java.util.Collection computePlans(java.lang.Object params, java.lang.Object metadata)

Generic call which defines which plan to create with the params.planType parameter and allow for a plugin to take over entirely.

java.util.Collection computeRedeployPlans(java.lang.Object params, java.lang.Object metadata)

Compute a redeploy plan (= undeploy/deploy).

java.util.Collection computeTransitionPlans(java.lang.Object params, java.lang.Object metadata)

Computes a transition plan.

java.util.Collection computeUndeployPlans(java.lang.Object params, java.lang.Object metadata)

Compute an undeploy plan.

protected Plan toSinglePlan(java.util.Collection plans)

 
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()
 

Property Detail

agentsService

@Initializable(required = true)
AgentsService agentsService


autoUpgradeScriptClassname

@Initializable
java.lang.String autoUpgradeScriptClassname


deltaMgr

@Initializable(required = true)
DeltaMgr deltaMgr


fabricService

@Initializable(required = true)
FabricService fabricService


planIdFactory

@Initializable(required = true)
groovy.lang.Closure planIdFactory


planner

@Initializable(required = true)
Planner planner


pluginService

@Initializable
PluginService pluginService


 
Method Detail

computeAgentsCleanupUpgradePlan

@Override
Plan computeAgentsCleanupUpgradePlan(java.lang.Object params, java.lang.Object metadata)
Computes the deployment plan for cleaning any upgrade that failed
Parameters:
metadata - any metadata to add to the plan(s)


computeAgentsUpgradePlan

@Override
Plan computeAgentsUpgradePlan(java.lang.Object params, java.lang.Object metadata)
Computes the deployment plan for upgrading agents
Parameters:
metadata - any metadata to add to the plan(s)


computeBouncePlans

java.util.Collection computeBouncePlans(java.lang.Object params, java.lang.Object metadata)
Compute a bounce plan to bounce (= stop/start) containers.
Parameters:
metadata - any metadata to add to the plan(s)


computeDeployPlans

java.util.Collection computeDeployPlans(java.lang.Object params, java.lang.Object metadata)
Compute deployment plans between the system provided (params.system) and the current system.


computeDeploymentPlans

@Override
java.util.Collection computeDeploymentPlans(java.lang.Object params, java.lang.Object metadata, java.lang.Object expectedModelFilter, java.lang.Object currentModelFilter, DeltaSystemModelFilter filter, java.util.Collection toStates)
Compute deployment plans by doing the following:
  1. compute delta between expected model (params.system) and current model (computed)
  2. compute the deployment plan(s) (closure callback) (use params.stepType if a given type only is required
  3. set various metadata on the plan(s) as well as the name
Returns:
a collection of plans (null if no expected model) which may be empty


computePlan

@Override
Plan computePlan(java.lang.Object params, java.lang.Object metadata)
Generic call which defines which plan to create with the params.planType parameter and allow for a plugin to take over entirely.
params:
params.planType the type of plan to create (deploy, undeploy, ...)
params:
params.stepType the type of steps to create (sequential/parallel)


computePlans

@Override
java.util.Collection computePlans(java.lang.Object params, java.lang.Object metadata)
Generic call which defines which plan to create with the params.planType parameter and allow for a plugin to take over entirely.
params:
params.planType the type of plan to create (deploy, undeploy, ...)


computeRedeployPlans

java.util.Collection computeRedeployPlans(java.lang.Object params, java.lang.Object metadata)
Compute a redeploy plan (= undeploy/deploy).
Parameters:
metadata - any metadata to add to the plan(s)


computeTransitionPlans

java.util.Collection computeTransitionPlans(java.lang.Object params, java.lang.Object metadata)
Computes a transition plan.
Parameters:
metadata - any metadata to add to the plan(s)


computeUndeployPlans

java.util.Collection computeUndeployPlans(java.lang.Object params, java.lang.Object metadata)
Compute an undeploy plan.
Parameters:
metadata - any metadata to add to the plan(s)


toSinglePlan

protected Plan toSinglePlan(java.util.Collection plans)


 

Groovy Documentation