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()
Identifiable
getId
in interface Identifiable<Long>
public void setId(@Nullable Long id)
Identifiable
setId
in interface Identifiable<Long>
id
- unique identifierpublic boolean isStopped()
Node
isStopped
in interface Node
true
if node is in "stopping mode" otherwise false
NodeState.STOPPED
public boolean isAbleToHandleNewMessages()
Node
isAbleToHandleNewMessages
in interface Node
true
node handles new messages, false
- otherwiseNodeState.RUN
public boolean isAbleToHandleExistingMessages()
Node
MsgStateEnum.PARTLY_FAILED
,
MsgStateEnum.POSTPONED
, etc.).isAbleToHandleExistingMessages
in interface Node
true
handles existing message, false
- otherwiseNodeState.HANDLES_EXISTING_MESSAGES
public String toHumanString()
HumanReadable
toHumanString
in interface HumanReadable
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.