Package es.bsc.dataclay.util.events
Enum EventMessageStateOuter.EventState
- java.lang.Object
-
- java.lang.Enum<EventMessageStateOuter.EventState>
-
- es.bsc.dataclay.util.events.EventMessageStateOuter.EventState
-
- All Implemented Interfaces:
Serializable
,Comparable<EventMessageStateOuter.EventState>
- Enclosing class:
- EventMessageStateOuter
public static enum EventMessageStateOuter.EventState extends Enum<EventMessageStateOuter.EventState>
This enumeration represent all possible states of events that can occur in DataClay.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getEventStateID()
Get the EventState::stateIDstatic EventMessageStateOuter.EventState
getFromID(int id)
Get event state IDvoid
setEventStateID(int newstateID)
Set the EventState::stateIDstatic EventMessageStateOuter.EventState
valueOf(String name)
Returns the enum constant of this type with the specified name.static EventMessageStateOuter.EventState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SEND
public static final EventMessageStateOuter.EventState SEND
Event was created and send but not received by Notification Manager yet.
-
QUEUED
public static final EventMessageStateOuter.EventState QUEUED
Event is present in queue.
-
EXECUTING
public static final EventMessageStateOuter.EventState EXECUTING
An event was executed and NotificationMgr is waiting for its return.
-
ERROR
public static final EventMessageStateOuter.EventState ERROR
Event contains an error.
-
-
Method Detail
-
values
public static EventMessageStateOuter.EventState[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (EventMessageStateOuter.EventState c : EventMessageStateOuter.EventState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EventMessageStateOuter.EventState valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
setEventStateID
public void setEventStateID(int newstateID)
Set the EventState::stateID- Parameters:
newstateID
- the stateID to set
-
getEventStateID
public int getEventStateID()
Get the EventState::stateID- Returns:
- the stateID
-
getFromID
public static EventMessageStateOuter.EventState getFromID(int id)
Get event state ID- Parameters:
id
- ID of event state- Returns:
- Event state id
-
-