Groovy Documentation

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

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

class InstallationTransitions

Uses a standard state machine and adds some extra information that is used by the provisioner to compute transitions author: Riccardo Ferretti created: Sep 14, 2009


Field Summary
static java.lang.String NO_SCRIPT

 
Property Summary
java.lang.Object fieldExcludes

java.lang.Object propsExcludes

 
Constructor Summary
InstallationTransitions()

InstallationTransitions(StateMachine sm, java.util.List destructiveTransitions, java.lang.String bounceState, java.lang.String reinstallState)

 
Method Summary
java.util.List findShortestPath(java.lang.String from, java.lang.String to, java.lang.String throughState)

Find the shortest path to get from state from to state to.

java.util.List findShortestPath(Installation from, Installation to, java.lang.String throughState)

java.lang.Object getAvailableActions()

Returns all available actions

java.lang.String getBounceState()

java.util.List getDestructiveTransitions()

Return the distructive actions

java.lang.String getReinstallState()

StateMachine getStateMachine()

java.lang.String getThroughState(java.util.List states)

Return the through state with the higher priority.

java.lang.String getThroughState(java.util.List states, java.lang.String throughState)

Return the through state with the higher priority.

java.lang.String getThroughState(Installation first, Installation second)

Given the two installations, it returns a (optional) through state that needs to be used by the children of this installation

 
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

NO_SCRIPT

public static final java.lang.String NO_SCRIPT


 
Property Detail

fieldExcludes

java.lang.Object fieldExcludes


propsExcludes

java.lang.Object propsExcludes


 
Constructor Detail

InstallationTransitions

InstallationTransitions()


InstallationTransitions

InstallationTransitions(StateMachine sm, java.util.List destructiveTransitions, java.lang.String bounceState, java.lang.String reinstallState)


 
Method Detail

findShortestPath

java.util.List findShortestPath(java.lang.String from, java.lang.String to, java.lang.String throughState)
Find the shortest path to get from state from to state to. If a through state is not null, the path will take it into account.
Returns:
a list of transitions


findShortestPath

java.util.List findShortestPath(Installation from, Installation to, java.lang.String throughState)


getAvailableActions

java.lang.Object getAvailableActions()
Returns all available actions


getBounceState

java.lang.String getBounceState()


getDestructiveTransitions

java.util.List getDestructiveTransitions()
Return the distructive actions


getReinstallState

java.lang.String getReinstallState()


getStateMachine

StateMachine getStateMachine()


getThroughState

java.lang.String getThroughState(java.util.List states)
Return the through state with the higher priority. Return null if none of the states is considered a through state


getThroughState

java.lang.String getThroughState(java.util.List states, java.lang.String throughState)
Return the through state with the higher priority. Return null if none of the states is considered a through state


getThroughState

java.lang.String getThroughState(Installation first, Installation second)
Given the two installations, it returns a (optional) through state that needs to be used by the children of this installation


 

Groovy Documentation