Groovy Documentation

org.linkedin.glu.orchestration.engine.delta.impl
[Java] Class SingleDeltaBuilder

java.lang.Object
  org.linkedin.glu.orchestration.engine.delta.impl.SingleDeltaBuilder

public class SingleDeltaBuilder

Authors:
yan@pongasoft.com


Field Summary
static java.lang.String MODULE

static Logger log

 
Constructor Summary
SingleDeltaBuilder(InternalDeltaProcessor deltaProcessor, SystemModel filteredExpectedModel, SystemModel filteredCurrentModel, DeltaSystemModelFilter deltaSystemModelFilter)

Constructor

 
Method Summary
InternalSystemModelDelta build()

Builds and return the delta

protected EntryDependencies computeDependencies(SystemModel model)

static int computeDepth(StateMachine stateMachine, java.lang.String state)

static java.util.Set computeFilteredKeys(SystemModel filteredExpectedModel, SystemModel filteredCurrentModel, DeltaSystemModelFilter deltaSystemModelFilter)

Compute the set of keys that will be part of the delta: the filters set on the model will be used as filter

protected InternalSystemEntryDelta createSystemEntryDelta(java.lang.String entryKey)

java.util.Set getDeltaKeys()

The method getFilteredKeys() return the keys that are part of the result.

InternalDeltaProcessor getDeltaProcessor()

DeltaSystemModelFilter getDeltaSystemModelFilter()

SystemModel getFilteredCurrentModel()

SystemModel getFilteredExpectedModel()

java.util.Set getFilteredKeys()

java.util.Set getParentKeys()

@return all the parent keys (note that it will be a subset of getDeltaKeys(), and not ALL parents)

InternalSystemModelDelta getSystemModelDelta()

SystemModel getUnfilteredCurrentModel()

SystemModel getUnfilteredExpectedModel()

protected InternalSystemEntryDelta processEntry(java.lang.String entryKey)

protected void processParentChild(java.lang.String parentKey, java.util.Set filteredKeys)

protected InternalSystemEntryDelta processSystemEntryDelta(InternalSystemEntryDelta delta)

void setFilteredKeys(java.util.Set filteredKeys)

void setParentKeys(java.util.Set parentKeys)

 
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

MODULE

public static final java.lang.String MODULE


log

public static final Logger log


 
Constructor Detail

SingleDeltaBuilder

public SingleDeltaBuilder(InternalDeltaProcessor deltaProcessor, SystemModel filteredExpectedModel, SystemModel filteredCurrentModel, DeltaSystemModelFilter deltaSystemModelFilter)
Constructor


 
Method Detail

build

public InternalSystemModelDelta build()
Builds and return the delta


computeDependencies

protected EntryDependencies computeDependencies(SystemModel model)


computeDepth

public static int computeDepth(StateMachine stateMachine, java.lang.String state)


computeFilteredKeys

public static java.util.Set computeFilteredKeys(SystemModel filteredExpectedModel, SystemModel filteredCurrentModel, DeltaSystemModelFilter deltaSystemModelFilter)
Compute the set of keys that will be part of the delta: the filters set on the model will be used as filter


createSystemEntryDelta

protected InternalSystemEntryDelta createSystemEntryDelta(java.lang.String entryKey)


getDeltaKeys

public java.util.Set getDeltaKeys()
The method getFilteredKeys() return the keys that are part of the result. With parent/child relationship, some keys may need to be added back (parent and/or children) in order to compute the proper deltas. This method will contain all the keys necessary fo compute the delta.
Returns:


getDeltaProcessor

public InternalDeltaProcessor getDeltaProcessor()


getDeltaSystemModelFilter

public DeltaSystemModelFilter getDeltaSystemModelFilter()


getFilteredCurrentModel

public SystemModel getFilteredCurrentModel()


getFilteredExpectedModel

public SystemModel getFilteredExpectedModel()


getFilteredKeys

public java.util.Set getFilteredKeys()


getParentKeys

public java.util.Set getParentKeys()
Returns:
all the parent keys (note that it will be a subset of getDeltaKeys(), and not ALL parents)


getSystemModelDelta

public InternalSystemModelDelta getSystemModelDelta()


getUnfilteredCurrentModel

public SystemModel getUnfilteredCurrentModel()


getUnfilteredExpectedModel

public SystemModel getUnfilteredExpectedModel()


processEntry

protected InternalSystemEntryDelta processEntry(java.lang.String entryKey)


processParentChild

protected void processParentChild(java.lang.String parentKey, java.util.Set filteredKeys)


processSystemEntryDelta

protected InternalSystemEntryDelta processSystemEntryDelta(InternalSystemEntryDelta delta)


setFilteredKeys

public void setFilteredKeys(java.util.Set filteredKeys)


setParentKeys

public void setParentKeys(java.util.Set parentKeys)


 

Groovy Documentation