Groovy Documentation

org.linkedin.glu.orchestration.engine.planner
[Groovy] Interface PlannerService


interface PlannerService

Authors:
yan@pongasoft.com


Property Summary
static java.lang.String AGENT_SELF_UPGRADE_MOUNT_POINT

 
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 computeDeploymentPlans(java.lang.Object params, java.lang.Object metadata, java.lang.Object expectedModelFilter, java.lang.Object currentModelFiter, 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.type 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.

 

Property Detail

AGENT_SELF_UPGRADE_MOUNT_POINT

static final java.lang.String AGENT_SELF_UPGRADE_MOUNT_POINT


 
Method Detail

computeAgentsCleanupUpgradePlan

Plan computeAgentsCleanupUpgradePlan(java.lang.Object params, java.lang.Object metadata)
Computes the deployment plan for cleaning any upgrade that failed
Parameters:
params.type - plan types (null means sequential, otherwise the type you want)
metadata - any metadata to add to the plan(s)


computeAgentsUpgradePlan

Plan computeAgentsUpgradePlan(java.lang.Object params, java.lang.Object metadata)
Computes the deployment plan for upgrading agents
Parameters:
params.type - plan types (null means sequential, otherwise the type you want)
metadata - any metadata to add to the plan(s)


computeDeploymentPlans

java.util.Collection computeDeploymentPlans(java.lang.Object params, java.lang.Object metadata, java.lang.Object expectedModelFilter, java.lang.Object currentModelFiter, 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.type if a given type only is required
  3. set various metadata on the plan(s) as well as the name
Parameters:
params.system - the 'expected' system (with filters)
params.name - name of the plan created
params.stepType - plan types (null means both types, otherwise the type you want)
metadata - any metadata to add to the plan(s)
Returns:
a collection of plans (null if no expected model) which may be empty


computePlan

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.
Parameters:
params.planType - the type of plan to create (deploy, undeploy, ...)
params.stepType - the type of steps to create (sequential/parallel) (default to sequential)


computePlans

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.
Parameters:
params.planType - the type of plan to create (deploy, undeploy, ...)
params.system - the 'expected' system (with filters)
params.name - name of the plan created
params.stepType - plan types (null means both types, otherwise the type you want)
metadata - any metadata to add to the plan(s)
Returns:
the plans (0, 1 or 2) depending on whether there is a plan at all or if more than 1 type


 

Groovy Documentation