public interface Node extends HumanReadable, Identifiable<Long>
Value of attributes in this entity can not be changed.
If you want to change value of attributes (like code, name...), use MutableNode
.
MutableNode
Modifier and Type | Method and Description |
---|---|
String |
getCode()
Gets code of this node.
|
String |
getDescription()
Gets description.
|
String |
getName()
Gets name of this node.
|
Long |
getNodeId()
Gets node identifier.
|
NodeState |
getState()
Gets state of this node.
|
boolean |
isAbleToHandleExistingMessages()
Is node handles existing message (from SEDA or
MsgStateEnum.PARTLY_FAILED ,
MsgStateEnum.POSTPONED , etc.). |
boolean |
isAbleToHandleNewMessages()
Is node handles new messages.
|
boolean |
isStopped()
Is node for this instance stopping?
|
toHumanString
getId, setId
boolean isStopped()
true
if node is in "stopping mode" otherwise false
NodeState.STOPPED
boolean isAbleToHandleNewMessages()
true
node handles new messages, false
- otherwiseNodeState.RUN
boolean isAbleToHandleExistingMessages()
MsgStateEnum.PARTLY_FAILED
,
MsgStateEnum.POSTPONED
, etc.).true
handles existing message, false
- otherwiseNodeState.HANDLES_EXISTING_MESSAGES
@Nullable Long getNodeId()
NULL
- node is not persistedString getCode()
String getName()
@Nullable String getDescription()
NULL
- node has no descriptionNodeState getState()
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.