public enum NodeState extends Enum<NodeState>
Node
Node.getState()
Enum Constant and Description |
---|
HANDLES_EXISTING_MESSAGES
Node handles only existing messages.
|
RUN
Node handles new and existing (saved messages in ESB) messages.
|
STOPPED
Node not handles existing messages and new messages.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isAbleToHandleExistingMessages()
If
Node in this state handles messages existing saved in ESB (from SEDA or
MsgStateEnum.PARTLY_FAILED , MsgStateEnum.POSTPONED , etc.). |
boolean |
isAbleToHandleNewMessages()
If
Node in this state handles new incoming messages. |
String |
toString() |
static NodeState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NodeState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NodeState RUN
public static final NodeState HANDLES_EXISTING_MESSAGES
public static final NodeState STOPPED
public static NodeState[] values()
for (NodeState c : NodeState.values()) System.out.println(c);
public static NodeState valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean isAbleToHandleNewMessages()
Node
in this state handles new incoming messages.true
node handles new incoming messages, false
- oterwisepublic boolean isAbleToHandleExistingMessages()
Node
in this state handles messages existing saved in ESB (from SEDA or
MsgStateEnum.PARTLY_FAILED
, MsgStateEnum.POSTPONED
, etc.).true
node handles existing saved messages, false
- otherwiseCopyright © 2018 Pivotal Software, Inc.. All rights reserved.