Enum ReplicationSelector

    • Enum Constant Detail

      • ALWAYS

        public static final ReplicationSelector ALWAYS

        Enum constant indicating that a service should always be replicated.

        Since:
        Rhino 2.6.1
      • SAVANNA

        public static final ReplicationSelector SAVANNA

        Enum constant indicating that a service should be replicated if installed in a namespace that replicates application state over the legacy savanna framework.

        Since:
        Rhino 2.6.1
      • KEYVALUESTORE

        public static final ReplicationSelector KEYVALUESTORE

        Enum constant indicating that a service should be replicated if installed in a namespace that utilises a key/value store to persist application state.

        Since:
        Rhino 2.6.1
    • Method Detail

      • values

        public static ReplicationSelector[] 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 (ReplicationSelector c : ReplicationSelector.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ReplicationSelector 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 name
        NullPointerException - if the argument is null
      • fromString

        public static ReplicationSelector fromString​(String s)

        Get a ReplicationSelector enum from its string representation.

        Parameters:
        s - the string representation of a ReplicationSelector enum (case insensitive).
        Returns:
        the corresponding ReplicationSelector enum, or null if the string was not recognised.