dk.vajhoej.model.core
Enum ComponentStatus

java.lang.Object
  extended by java.lang.Enum<ComponentStatus>
      extended by 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:


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
LOCAL
           
REMOTE_FAILOVER
           
REMOTE_FAILOVER_PASSIVE
           
REMOTE_LOADSHARING
           
REMOTE_PASSTHROUGH
           
REMOTE_SINGLE
           
 
Method Summary
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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

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 name
java.lang.NullPointerException - if the argument is null

toString

public java.lang.String toString()
Overrides:
toString in class java.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