|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.linkedin.glu.orchestration.engine.planner.impl.SingleDeltaTransitionPlan
public class SingleDeltaTransitionPlan
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(Type 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 |
---|
protected static final java.util.Collection DELTA_TRANSITIONS
public static final java.lang.String ROOT_PARENT
Constructor Detail |
---|
public SingleDeltaTransitionPlan(InternalSystemModelDelta systemModelDelta, AgentURIProvider agentURIProvider, ActionDescriptorAdjuster actionDescriptorAdjuster)
public SingleDeltaTransitionPlan(InternalSystemModelDelta systemModelDelta, AgentURIProvider agentURIProvider, ActionDescriptorAdjuster actionDescriptorAdjuster, int sequenceNumber)
Method Detail |
---|
public Transition addTransition(InternalSystemEntryDelta entryDelta, java.lang.String action, java.lang.String toState, boolean isVirtual)
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)
protected Transition addTransitionSteps(Transition transition, InternalSystemEntryDelta entryDelta, java.lang.Object fromState, java.lang.Object toState)
public Plan buildPlan(Type type)
protected SingleDeltaTransitionPlan.ActionFromStatus computeActionFromStatus(InternalSystemEntryDelta entryDelta)
public void computeTransitionsToFixDelta()
protected Transition createTransition(InternalSystemEntryDelta entryDelta, java.lang.String key, java.lang.String action, java.lang.String toState)
public ActionDescriptorAdjuster getActionDescriptorAdjuster()
public AgentURIProvider getAgentURIProvider()
public java.util.Map getFirstTransitions()
public java.util.Map getLastTransitions()
public int getSequenceNumber()
public InternalSystemModelDelta getSystemModelDelta()
public TransitionPlan getTransitionPlan()
public java.util.Map getTransitions()
protected void processEntryDelta(InternalSystemEntryDelta entryDelta)
protected Transition processEntryStateMismatch(Transition lastTransition, InternalSystemEntryDelta entryDelta)
protected Transition processEntryStateMismatch(Transition lastTransition, InternalSystemEntryDelta entryDelta, java.lang.Object fromState, java.lang.Object toState)
protected void processEntryTransition(InternalSystemEntryDelta entryDelta, java.util.Collection toStates)
Groovy Documentation