public abstract class AbstractNode extends Object implements Node
NodeState information.Node,
MutableNode| Constructor and Description |
|---|
AbstractNode() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Long |
getId()
Gets unique identifier of the entity.
|
int |
hashCode() |
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?
|
void |
setId(Long id)
Sets unique identifier of the entity.
|
String |
toHumanString()
Returns human readable entity identification with start and end round brackets.
|
String |
toString() |
@Nullable public Long getId()
IdentifiablegetId in interface Identifiable<Long>public void setId(@Nullable Long id)
IdentifiablesetId in interface Identifiable<Long>id - unique identifierpublic boolean isStopped()
NodeisStopped in interface Nodetrue if node is in "stopping mode" otherwise falseNodeState.STOPPEDpublic boolean isAbleToHandleNewMessages()
NodeisAbleToHandleNewMessages in interface Nodetrue node handles new messages, false - otherwiseNodeState.RUNpublic boolean isAbleToHandleExistingMessages()
NodeMsgStateEnum.PARTLY_FAILED,
MsgStateEnum.POSTPONED, etc.).isAbleToHandleExistingMessages in interface Nodetrue handles existing message, false - otherwiseNodeState.HANDLES_EXISTING_MESSAGESpublic String toHumanString()
HumanReadabletoHumanString in interface HumanReadableCopyright © 2018 Pivotal Software, Inc.. All rights reserved.