Package dk.vajhoej.model.core
Enum ComponentStatus
- java.lang.Object
-
- java.lang.Enum<ComponentStatus>
-
- dk.vajhoej.model.core.ComponentStatus
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ComponentStatus>
public enum ComponentStatus extends java.lang.Enum<ComponentStatus>
Enum ComponentStatus specifies status of software component regarding redundancy.
Semantics:Status for components enum value description LOCAL Component is only accessible local REMOTE_SINGLE Component is accessible remote but always as single instance REMOTE_LOADSHARING Component is accessible remote in loadsharing (active-active) configurations REMOTE_FAILOVER Component is accessible remote in failover (active-passive) configurations - this instance is active REMOTE_FAILOVER_PASSIVE Component is accessible remote in failover (active-passive) configurations - this instance is passive REMOTE_PASSTHROUGH Component is accessible remote but single/loadsharing/failover is determined by software components inside
-
-
Enum Constant Summary
Enum Constants Enum Constant Description LOCAL
REMOTE_FAILOVER
REMOTE_FAILOVER_PASSIVE
REMOTE_LOADSHARING
REMOTE_PASSTHROUGH
REMOTE_SINGLE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ComponentStatus
parse(java.lang.String s)
Parse string with component status.java.lang.String
toString()
static ComponentStatus
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ComponentStatus[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LOCAL
public static final ComponentStatus LOCAL
-
REMOTE_SINGLE
public static final ComponentStatus REMOTE_SINGLE
-
REMOTE_LOADSHARING
public static final ComponentStatus REMOTE_LOADSHARING
-
REMOTE_FAILOVER
public static final ComponentStatus REMOTE_FAILOVER
-
REMOTE_FAILOVER_PASSIVE
public static final ComponentStatus REMOTE_FAILOVER_PASSIVE
-
REMOTE_PASSTHROUGH
public static final ComponentStatus REMOTE_PASSTHROUGH
-
-
Method Detail
-
values
public static ComponentStatus[] 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 (ComponentStatus c : ComponentStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ComponentStatus valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<ComponentStatus>
-
parse
public static ComponentStatus parse(java.lang.String s)
Parse string with component status.- Parameters:
s
- string with component status- Returns:
- component status
-
-