public enum AdoptionResultType extends Enum<AdoptionResultType>
SessionOwnershipFacility adoption result types.
Enum Constant and 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 the
SessionOwnershipRecord . |
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.
|
Modifier and Type | Method and 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.
|
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.
public static AdoptionResultType[] values()
for (AdoptionResultType c : AdoptionResultType.values()) System.out.println(c);
public static AdoptionResultType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null