Enum AdoptionResultType

    • Enum Constant Detail


        public static final AdoptionResultType RECORD_DOES_NOT_EXIST

        The session ownership record was not found in the session ownership store. No state was modified.


        public static final AdoptionResultType RECORD_NOT_SAME_CLUSTER

        The session ownership record was not created by this cluster so adoption was not attempted. No state was modified.


        public static final AdoptionResultType RECORD_NOT_APPROPRIATE

        The session ownership record was not appropriate for the race algorithm as it was missing necessary attributes or attribute values were not formatted correctly. No state was modified.


        public static final AdoptionResultType RECORD_VIEW_ID_NEWER

        No adoption was possible as this node’s view ID is less than the view ID contained by the record. This means that the current node is "behind" a more recent cluster view change, and is therefore expecting a view change. In Savanna clustering terminology this means that the cluster has voted for new membership, but that the new membership has not yet been fully delivered and processed in this Rhino node (as a Savanna CCM).


        public static final AdoptionResultType ALREADY_OWNED_BY_THIS_NODE

        No adoption was needed as this node already owns the session. Session ownership record state may or may not have been modified, for example, if the record was written with an earlier cluster view ID then the record will be updated with the new view ID.


        public static final AdoptionResultType ALREADY_OWNED_BY_OTHER_NODE

        No adoption was possible as another node already owns the session. Session ownership record state will not have been modified but any protocol-specific record that has been retrieved up may soon be out of date so should be discarded.


        public static final AdoptionResultType RACE_WON_BY_THIS_NODE

        Session ownership state was successfully modified and this node is now the owner of the SessionOwnershipRecord. This node should process the session.


        public static final AdoptionResultType RACE_WON_BY_OTHER_NODE

        Another node also raced for the record and won, ie. this node did not win the race. This node is expected to back out and re-execute the request received logic.


        public static final AdoptionResultType SYSTEM_ISSUE

        A system level issue occurred during the operation. Some possible examples include:

        • a read operation timed out

        • the CAS operation timed out without a result.

    • Method Detail

      • values

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

        public static AdoptionResultType 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.)
        name - the name of the enum constant to be returned.
        the enum constant with the specified name
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null