Enum ServiceState
- java.lang.Object
-
- java.lang.Enum<ServiceState>
-
- org.opendaylight.infrautils.diagstatus.ServiceState
-
- All Implemented Interfaces:
Serializable
,Comparable<ServiceState>
public enum ServiceState extends Enum<ServiceState>
ServiceState forServiceState
.- Author:
- Faseela K
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ERROR
This state is used only by the monitored services for reactive and proactive reporting.OPERATIONAL
This state is used only by the monitored services for reactive and proactive reporting.RECOVERED
This state is used only by the monitor implementation and not by monitored services.STARTING
Move to this state when registration call is received from monitored service.SUSPECTED
This state is used only by the monitor implementation and not by monitored services.UNREGISTERED
This state is used only by the monitor implementation and not by monitored services.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ServiceState
valueOf(String name)
Returns the enum constant of this type with the specified name.static ServiceState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNREGISTERED
public static final ServiceState UNREGISTERED
This state is used only by the monitor implementation and not by monitored services.
-
STARTING
public static final ServiceState STARTING
Move to this state when registration call is received from monitored service.
-
OPERATIONAL
public static final ServiceState OPERATIONAL
This state is used only by the monitored services for reactive and proactive reporting.
-
SUSPECTED
public static final ServiceState SUSPECTED
This state is used only by the monitor implementation and not by monitored services.
-
RECOVERED
public static final ServiceState RECOVERED
This state is used only by the monitor implementation and not by monitored services.
-
ERROR
public static final ServiceState ERROR
This state is used only by the monitored services for reactive and proactive reporting.
-
-
Method Detail
-
values
public static ServiceState[] 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 (ServiceState c : ServiceState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ServiceState 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
-
-