Enum 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
    • 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