Groovy Documentation

org.linkedin.glu.orchestration.engine.delta
[Java] Interface SystemEntryDelta


public interface SystemEntryDelta

Authors:
yan@pongasoft.com


Nested Class Summary
enum SystemEntryDelta.DeltaState

 
Field Summary
static java.lang.String DELTA_STATE_KEY

Represents the state of the delta itself (ex: 'notDeployed', 'unexpected', 'notExpectedState', 'expectedState', 'delta', 'error')

static java.lang.String DELTA_STATUS_INFO_KEY

static java.lang.String DELTA_STATUS_KEY

static java.lang.String ENTRY_STATE_KEY

Represents the state of the entry (= the state from the state machine backing up this entry)

static java.lang.String ERROR_KEY

static java.lang.String PARENT_KEY

 
Method Summary
java.lang.Object findCurrentValue(java.lang.String key)

SystemEntryValueWithDelta findEntryStateDelta()

@return the delta for entryState (null if no delta!)

SystemEntryValueWithDelta findErrorValue(java.lang.String key)

This call will return a non null result iff there is a value which has a delta part of the error or in other word if key belongs to the set returned by getErrorValueKeys()

java.lang.Object findExpectedOrCurrentValue(java.lang.String key)

Returns:
the expected value given the key.

java.lang.Object findExpectedValue(java.lang.String key)

SystemEntryValueWithDelta findParentDelta()

@return the delta for parent (null if no delta!)

SystemEntryValue findValue(java.lang.String key)

@return the value given the key (or null if no such value)

SystemEntryValueWithDelta findValueWithDelta(java.lang.String key)

@return the value given the key (or null if no such value or not in delta)

java.lang.Object findValueWithNoDelta(java.lang.String key)

Returns:
the value given the key (or null if no such value or in delta).

java.lang.String getAgent()

Shortcut to get the agent

SystemEntry getCurrentEntry()

*************************** Methods related to "current"

java.lang.String getCurrentEntryState()

SystemEntryDelta.DeltaState getDeltaState()

Shortcut to get the state (equivalent to findValue("state")?.

java.lang.String getDeltaStatus()

Shortcut to get the status (equivalent to findValue("status")?.

DeltaStatusInfo getDeltaStatusInfo()

Shortcut to get the statusInfo (equivalent to findValue("statusInfo")?.

java.util.Set getDeltaValueKeys()

@return all the keys where the value has a delta

java.lang.Object getError()

@return the error if this entry is in error (from a state machine point of view)

java.util.Set getErrorValueKeys()

@return all the keys where the value has a delta which triggers an error

java.lang.Object getErrorValueKeys(java.lang.Object set)

@return all the keys where the value has a delta which triggers an error

SystemEntry getExpectedEntry()

*************************** Methods related to "expected"

java.lang.String getExpectedEntryState()

java.lang.String getKey()

@author yan@pongasoft.com

java.lang.String getMountPoint()

Shortcut to get the mountpoint

StateMachine getStateMachine()

@return the state machine associated to this delta

java.util.Map getValues()

@return all the values of this entry

boolean hasErrorValue()

@return true if this entry is in error because of a delta or in other word this call will return true iff getErrorValueKeys() is not empty

boolean isEmptyAgent()

 

Field Detail

DELTA_STATE_KEY

public static final java.lang.String DELTA_STATE_KEY
Represents the state of the delta itself (ex: 'notDeployed', 'unexpected', 'notExpectedState', 'expectedState', 'delta', 'error')


DELTA_STATUS_INFO_KEY

public static final java.lang.String DELTA_STATUS_INFO_KEY


DELTA_STATUS_KEY

public static final java.lang.String DELTA_STATUS_KEY


ENTRY_STATE_KEY

public static final java.lang.String ENTRY_STATE_KEY
Represents the state of the entry (= the state from the state machine backing up this entry)


ERROR_KEY

public static final java.lang.String ERROR_KEY


PARENT_KEY

public static final java.lang.String PARENT_KEY


 
Method Detail

findCurrentValue

public java.lang.Object findCurrentValue(java.lang.String key)


findEntryStateDelta

public SystemEntryValueWithDelta findEntryStateDelta()
Returns:
the delta for entryState (null if no delta!)


findErrorValue

public SystemEntryValueWithDelta findErrorValue(java.lang.String key)
This call will return a non null result iff there is a value which has a delta part of the error or in other word if key belongs to the set returned by getErrorValueKeys()
Returns:
null if no such key OR not an error value (potentially even if delta!)


findExpectedOrCurrentValue

public java.lang.Object findExpectedOrCurrentValue(java.lang.String key)
Returns:
the expected value given the key. If null returns the current value (null is returned if neither value is present)


findExpectedValue

public java.lang.Object findExpectedValue(java.lang.String key)


findParentDelta

public SystemEntryValueWithDelta findParentDelta()
Returns:
the delta for parent (null if no delta!)


findValue

public SystemEntryValue findValue(java.lang.String key)
Returns:
the value given the key (or null if no such value)


findValueWithDelta

public SystemEntryValueWithDelta findValueWithDelta(java.lang.String key)
Returns:
the value given the key (or null if no such value or not in delta)


findValueWithNoDelta

public java.lang.Object findValueWithNoDelta(java.lang.String key)
Returns:
the value given the key (or null if no such value or in delta). Note that this call return the value itself (not the wrapper).


getAgent

public java.lang.String getAgent()
Shortcut to get the agent


getCurrentEntry

public SystemEntry getCurrentEntry()
**************************** Methods related to "current"


getCurrentEntryState

public java.lang.String getCurrentEntryState()


getDeltaState

public SystemEntryDelta.DeltaState getDeltaState()
Shortcut to get the state (equivalent to findValue("state")?.expectedValue)


getDeltaStatus

public java.lang.String getDeltaStatus()
Shortcut to get the status (equivalent to findValue("status")?.expectedValue)


getDeltaStatusInfo

public DeltaStatusInfo getDeltaStatusInfo()
Shortcut to get the statusInfo (equivalent to findValue("statusInfo")?.expectedValue)


getDeltaValueKeys

public java.util.Set getDeltaValueKeys()
Returns:
all the keys where the value has a delta


getError

public java.lang.Object getError()
Returns:
the error if this entry is in error (from a state machine point of view)


getErrorValueKeys

public java.util.Set getErrorValueKeys()
Returns:
all the keys where the value has a delta which triggers an error


getErrorValueKeys

public java.lang.Object getErrorValueKeys(java.lang.Object set)
Returns:
all the keys where the value has a delta which triggers an error


getExpectedEntry

public SystemEntry getExpectedEntry()
**************************** Methods related to "expected"


getExpectedEntryState

public java.lang.String getExpectedEntryState()


getKey

public java.lang.String getKey()
Authors:
yan@pongasoft.com


getMountPoint

public java.lang.String getMountPoint()
Shortcut to get the mountpoint


getStateMachine

public StateMachine getStateMachine()
Returns:
the state machine associated to this delta


getValues

public java.util.Map getValues()
Returns:
all the values of this entry


hasErrorValue

public boolean hasErrorValue()
Returns:
true if this entry is in error because of a delta or in other word this call will return true iff getErrorValueKeys() is not empty


isEmptyAgent

public boolean isEmptyAgent()


 

Groovy Documentation