Groovy Documentation

org.linkedin.glu.provisioner.impl.planner
[Groovy] Class AgentPlanner

java.lang.Object
  org.linkedin.glu.provisioner.impl.planner.AgentPlanner

class AgentPlanner

Planner to upgrade the agent.

Authors:
ypujante@linkedin.com


Method Summary
Plan createCleanupPlan(java.lang.Object agents, java.lang.String version)

Plan createTransitionPlan(java.util.Collection installations, java.util.Collection toStates, IDescriptionProvider descriptionProvider, groovy.lang.Closure filter)

Create a plan to go to the provided list of states (one after the other) for the given installation.

Plan createTransitionPlan(java.lang.String agentName, java.lang.String mountPoint, java.net.URI agentURI, java.lang.String fromState, java.lang.String toState, IDescriptionProvider descriptionProvider)

Create a plan to go from state fromState to state toState.

Plan createTransitionPlan(java.lang.String agentName, java.lang.String mountPoint, java.net.URI agentURI, java.lang.String fromState, java.util.Collection toStates, IDescriptionProvider descriptionProvider)

Create a plan to go to the provided list of states (one after the other).

Plan createUpgradePlan(java.lang.Object agents, java.lang.String version, java.lang.String coordinates)

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

Method Detail

createCleanupPlan

Plan createCleanupPlan(java.lang.Object agents, java.lang.String version)


createTransitionPlan

Plan createTransitionPlan(java.util.Collection installations, java.util.Collection toStates, IDescriptionProvider descriptionProvider, groovy.lang.Closure filter)
Create a plan to go to the provided list of states (one after the other) for the given installation. Note that there is no validation whether it is possible or not.
Parameters:
filter - will be called for each step to filter it in or out of the plan (return true to keep, false to reject)


createTransitionPlan

Plan createTransitionPlan(java.lang.String agentName, java.lang.String mountPoint, java.net.URI agentURI, java.lang.String fromState, java.lang.String toState, IDescriptionProvider descriptionProvider)
Create a plan to go from state fromState to state toState. Note that there is no validation whether it is possible or not.


createTransitionPlan

Plan createTransitionPlan(java.lang.String agentName, java.lang.String mountPoint, java.net.URI agentURI, java.lang.String fromState, java.util.Collection toStates, IDescriptionProvider descriptionProvider)
Create a plan to go to the provided list of states (one after the other). Note that there is no validation whether it is possible or not.


createUpgradePlan

Plan createUpgradePlan(java.lang.Object agents, java.lang.String version, java.lang.String coordinates)


 

Groovy Documentation