@Entity public class MutableNode extends AbstractNode
Node| Modifier | Constructor and Description |
|---|---|
protected |
MutableNode()
New instance only for JPA.
|
|
MutableNode(String code,
String name)
New instance with
NodeState.RUN state. |
|
MutableNode(String code,
String name,
NodeState state)
New instance.
|
| 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.
|
void |
setCode(String code)
Sets code of this node.
|
void |
setDescription(String description)
Sets description
|
void |
setHandleOnlyExistingMessageState()
Node handles only existing messages (new message will be rejected)
NodeState.HANDLES_EXISTING_MESSAGES. |
void |
setName(String name)
Sets name ot this node.
|
void |
setRunState()
Node handles all messages (existing and new)
NodeState.RUN. |
void |
setStoppedState()
Node is stopped (new message will be rejected and existing is not processing)
NodeState.STOPPED. |
equals, getId, hashCode, isAbleToHandleExistingMessages, isAbleToHandleNewMessages, isStopped, setId, toHumanString, toStringprotected MutableNode()
public MutableNode(String code, String name)
NodeState.RUN state.code - codename - namepublic void setRunState()
NodeState.RUN.public void setHandleOnlyExistingMessageState()
NodeState.HANDLES_EXISTING_MESSAGES.public void setStoppedState()
NodeState.STOPPED.@Nullable public Long getNodeId()
NodeNULL - node is not persistedpublic String getCode()
Nodepublic void setCode(String code)
code - codepublic String getName()
Nodepublic void setName(String name)
name - name@Nullable public String getDescription()
NodeNULL - node has no descriptionpublic void setDescription(@Nullable String description)
description - description, NULL - node has no descriptionCopyright © 2018 Pivotal Software, Inc.. All rights reserved.