Groovy Documentation

org.linkedin.glu.orchestration.engine.planner.impl
[Java] Class SingleDeltaTransitionPlan

java.lang.Object
  org.linkedin.glu.orchestration.engine.planner.impl.SingleDeltaTransitionPlan
All Implemented Interfaces:
TransitionPlan

public class SingleDeltaTransitionPlan

Authors:
yan@pongasoft.com


Nested Class Summary
enum SingleDeltaTransitionPlan.ActionFromStatus

 
Field Summary
protected static java.util.Collection DELTA_TRANSITIONS

static java.lang.String ROOT_PARENT

@author yan@pongasoft.com

 
Constructor Summary
SingleDeltaTransitionPlan(InternalSystemModelDelta systemModelDelta, AgentURIProvider agentURIProvider, ActionDescriptorAdjuster actionDescriptorAdjuster)

Constructor

SingleDeltaTransitionPlan(InternalSystemModelDelta systemModelDelta, AgentURIProvider agentURIProvider, ActionDescriptorAdjuster actionDescriptorAdjuster, int sequenceNumber)

Constructor

 
Method Summary
Transition addTransition(InternalSystemEntryDelta entryDelta, java.lang.String action, java.lang.String toState, boolean isVirtual)

A transition is virtual if it is added by a parent/child relationship but it may not be needed depending on the parent.

protected Transition addTransition(InternalSystemEntryDelta entryDelta, java.lang.String action, java.lang.String toState, int distance)

protected Transition addTransition(Transition transition, InternalSystemEntryDelta entryDelta, java.lang.Object fromState, java.lang.Object toState)

Process entry state mismatch

protected Transition addTransitionSteps(Transition transition, InternalSystemEntryDelta entryDelta, java.lang.Object fromState, java.lang.Object toState)

Add all transition steps from -> to

Plan buildPlan(java.lang.Object type)

protected SingleDeltaTransitionPlan.ActionFromStatus computeActionFromStatus(InternalSystemEntryDelta entryDelta)

void computeTransitionsToFixDelta()

Compute the transitions necessary to fix the delta

protected Transition createTransition(InternalSystemEntryDelta entryDelta, java.lang.String key, java.lang.String action, java.lang.String toState)

ActionDescriptorAdjuster getActionDescriptorAdjuster()

AgentURIProvider getAgentURIProvider()

java.util.Map getFirstTransitions()

@return a map where the key is entry key and the value is the 'first' transition executed for this entry key

java.util.Map getLastTransitions()

@return a map where the key is entry key and the value is the 'last' transition executed for this entry key

int getSequenceNumber()

InternalSystemModelDelta getSystemModelDelta()

TransitionPlan getTransitionPlan()

java.util.Map getTransitions()

protected void processEntryDelta(InternalSystemEntryDelta entryDelta)

Processes one entry delta (agent/mountPoint)

protected Transition processEntryStateMismatch(Transition lastTransition, InternalSystemEntryDelta entryDelta)

Process entry state mismatch

protected Transition processEntryStateMismatch(Transition lastTransition, InternalSystemEntryDelta entryDelta, java.lang.Object fromState, java.lang.Object toState)

Process entry state mismatch

protected void processEntryTransition(InternalSystemEntryDelta entryDelta, java.util.Collection toStates)

Processes one entry transition

 
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

DELTA_TRANSITIONS

protected static final java.util.Collection DELTA_TRANSITIONS


ROOT_PARENT

public static final java.lang.String ROOT_PARENT
Authors:
yan@pongasoft.com


 
Constructor Detail

SingleDeltaTransitionPlan

public SingleDeltaTransitionPlan(InternalSystemModelDelta systemModelDelta, AgentURIProvider agentURIProvider, ActionDescriptorAdjuster actionDescriptorAdjuster)
Constructor


SingleDeltaTransitionPlan

public SingleDeltaTransitionPlan(InternalSystemModelDelta systemModelDelta, AgentURIProvider agentURIProvider, ActionDescriptorAdjuster actionDescriptorAdjuster, int sequenceNumber)
Constructor


 
Method Detail

addTransition

public Transition addTransition(InternalSystemEntryDelta entryDelta, java.lang.String action, java.lang.String toState, boolean isVirtual)
A transition is virtual if it is added by a parent/child relationship but it may not be needed depending on the parent.


addTransition

protected Transition addTransition(InternalSystemEntryDelta entryDelta, java.lang.String action, java.lang.String toState, int distance)


addTransition

protected Transition addTransition(Transition transition, InternalSystemEntryDelta entryDelta, java.lang.Object fromState, java.lang.Object toState)
Process entry state mismatch


addTransitionSteps

protected Transition addTransitionSteps(Transition transition, InternalSystemEntryDelta entryDelta, java.lang.Object fromState, java.lang.Object toState)
Add all transition steps from -> to


buildPlan

public Plan buildPlan(java.lang.Object type)


computeActionFromStatus

protected SingleDeltaTransitionPlan.ActionFromStatus computeActionFromStatus(InternalSystemEntryDelta entryDelta)


computeTransitionsToFixDelta

public void computeTransitionsToFixDelta()
Compute the transitions necessary to fix the delta


createTransition

protected Transition createTransition(InternalSystemEntryDelta entryDelta, java.lang.String key, java.lang.String action, java.lang.String toState)


getActionDescriptorAdjuster

public ActionDescriptorAdjuster getActionDescriptorAdjuster()


getAgentURIProvider

public AgentURIProvider getAgentURIProvider()


getFirstTransitions

public java.util.Map getFirstTransitions()
Returns:
a map where the key is entry key and the value is the 'first' transition executed for this entry key


getLastTransitions

public java.util.Map getLastTransitions()
Returns:
a map where the key is entry key and the value is the 'last' transition executed for this entry key


getSequenceNumber

public int getSequenceNumber()


getSystemModelDelta

public InternalSystemModelDelta getSystemModelDelta()


getTransitionPlan

public TransitionPlan getTransitionPlan()


getTransitions

public java.util.Map getTransitions()


processEntryDelta

protected void processEntryDelta(InternalSystemEntryDelta entryDelta)
Processes one entry delta (agent/mountPoint)


processEntryStateMismatch

protected Transition processEntryStateMismatch(Transition lastTransition, InternalSystemEntryDelta entryDelta)
Process entry state mismatch


processEntryStateMismatch

protected Transition processEntryStateMismatch(Transition lastTransition, InternalSystemEntryDelta entryDelta, java.lang.Object fromState, java.lang.Object toState)
Process entry state mismatch


processEntryTransition

protected void processEntryTransition(InternalSystemEntryDelta entryDelta, java.util.Collection toStates)
Processes one entry transition


 

Groovy Documentation