|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD |
public interface SystemEntryDelta
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 ( |
SystemEntryValueWithDelta
|
findErrorValue(java.lang.String key)
This call will return a non |
java.lang.Object
|
findExpectedOrCurrentValue(java.lang.String key)
|
java.lang.Object
|
findExpectedValue(java.lang.String key)
|
SystemEntryValueWithDelta
|
findParentDelta()
@return the delta for parent ( |
SystemEntryValue
|
findValue(java.lang.String key)
@return the value given the key (or |
SystemEntryValueWithDelta
|
findValueWithDelta(java.lang.String key)
@return the value given the key (or |
java.lang.Object
|
findValueWithNoDelta(java.lang.String key)
|
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 |
java.lang.String
|
getDeltaStatus()
Shortcut to get the status (equivalent to |
DeltaStatusInfo
|
getDeltaStatusInfo()
Shortcut to get the statusInfo (equivalent to |
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 |
boolean
|
isEmptyAgent()
|
Field Detail |
---|
public static final java.lang.String DELTA_STATE_KEY
public static final java.lang.String DELTA_STATUS_INFO_KEY
public static final java.lang.String DELTA_STATUS_KEY
public static final java.lang.String ENTRY_STATE_KEY
public static final java.lang.String ERROR_KEY
public static final java.lang.String PARENT_KEY
Method Detail |
---|
public java.lang.Object findCurrentValue(java.lang.String key)
public SystemEntryValueWithDelta findEntryStateDelta()
null
if no delta!)
public SystemEntryValueWithDelta findErrorValue(java.lang.String key)
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()
null
if no such key OR not an error value (potentially even if delta!)
public java.lang.Object findExpectedOrCurrentValue(java.lang.String key)
null
returns the current value
(null
is returned if neither value is present)
public java.lang.Object findExpectedValue(java.lang.String key)
public SystemEntryValueWithDelta findParentDelta()
null
if no delta!)
public SystemEntryValue findValue(java.lang.String key)
null
if no such value)
public SystemEntryValueWithDelta findValueWithDelta(java.lang.String key)
null
if no such value or not in delta)
public java.lang.Object findValueWithNoDelta(java.lang.String key)
null
if no such value or in delta). Note
that this call return the value itself (not the wrapper).
public java.lang.String getAgent()
public SystemEntry getCurrentEntry()
public java.lang.String getCurrentEntryState()
public SystemEntryDelta.DeltaState getDeltaState()
findValue("state")?.expectedValue
)
public java.lang.String getDeltaStatus()
findValue("status")?.expectedValue
)
public DeltaStatusInfo getDeltaStatusInfo()
findValue("statusInfo")?.expectedValue
)
public java.util.Set getDeltaValueKeys()
public java.lang.Object getError()
public java.util.Set getErrorValueKeys()
public java.lang.Object getErrorValueKeys(java.lang.Object set)
public SystemEntry getExpectedEntry()
public java.lang.String getExpectedEntryState()
public java.lang.String getKey()
public java.lang.String getMountPoint()
public StateMachine getStateMachine()
public java.util.Map getValues()
public boolean hasErrorValue()
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
public boolean isEmptyAgent()
Groovy Documentation