Enum AdoptionResultType
- java.lang.Object
-
- java.lang.Enum<AdoptionResultType>
-
- com.opencloud.rhino.facilities.sessionownership.AdoptionResultType
-
- All Implemented Interfaces:
Serializable
,Comparable<AdoptionResultType>
public enum AdoptionResultType extends Enum<AdoptionResultType>
SessionOwnershipFacility adoption result types.
- Since:
- Rhino 2.6.1
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALREADY_OWNED_BY_OTHER_NODE
No adoption was possible as another node already owns the session.ALREADY_OWNED_BY_THIS_NODE
No adoption was needed as this node already owns the session.RACE_WON_BY_OTHER_NODE
Another node also raced for the record and won, ie. this node did not win the race.RACE_WON_BY_THIS_NODE
Session ownership state was successfully modified and this node is now the owner of theSessionOwnershipRecord
.RECORD_DOES_NOT_EXIST
The session ownership record was not found in the session ownership store.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.RECORD_NOT_SAME_CLUSTER
The session ownership record was not created by this cluster so adoption was not attempted.RECORD_VIEW_ID_NEWER
No adoption was possible as this node’s view ID is less than the view ID contained by the record.SYSTEM_ISSUE
A system level issue occurred during the operation.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AdoptionResultType
valueOf(String name)
Returns the enum constant of this type with the specified name.static AdoptionResultType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
RECORD_DOES_NOT_EXIST
public static final AdoptionResultType RECORD_DOES_NOT_EXIST
The session ownership record was not found in the session ownership store. No state was modified.
-
RECORD_NOT_SAME_CLUSTER
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.
-
RECORD_NOT_APPROPRIATE
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.
-
RECORD_VIEW_ID_NEWER
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).
-
ALREADY_OWNED_BY_THIS_NODE
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.
-
ALREADY_OWNED_BY_OTHER_NODE
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.
-
RACE_WON_BY_THIS_NODE
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.
-
RACE_WON_BY_OTHER_NODE
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.
-
SYSTEM_ISSUE
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()) System.out.println(c);
- Returns:
- 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.)- 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 nameNullPointerException
- if the argument is null
-
-