Enum GridDhtPartitionState
- java.lang.Object
-
- java.lang.Enum<GridDhtPartitionState>
-
- org.apache.ignite.internal.processors.cache.distributed.dht.topology.GridDhtPartitionState
-
- All Implemented Interfaces:
Serializable,Comparable<GridDhtPartitionState>
public enum GridDhtPartitionState extends Enum<GridDhtPartitionState>
Partition states.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EVICTEDPartition has been evicted from cache.LOSTPartition state is invalid, partition should not be used.MOVINGPartition is being loaded from another node.OWNINGThis node is either a primary or backup owner.RENTINGThis node is neither primary or back up owner.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanactive()static @Nullable GridDhtPartitionStatefromOrdinal(int ord)static GridDhtPartitionStatevalueOf(String name)Returns the enum constant of this type with the specified name.static GridDhtPartitionState[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MOVING
public static final GridDhtPartitionState MOVING
Partition is being loaded from another node.
-
OWNING
public static final GridDhtPartitionState OWNING
This node is either a primary or backup owner.
-
RENTING
public static final GridDhtPartitionState RENTING
This node is neither primary or back up owner.
-
EVICTED
public static final GridDhtPartitionState EVICTED
Partition has been evicted from cache.
-
LOST
public static final GridDhtPartitionState LOST
Partition state is invalid, partition should not be used.
-
-
Method Detail
-
values
public static GridDhtPartitionState[] 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 (GridDhtPartitionState c : GridDhtPartitionState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GridDhtPartitionState 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
-
fromOrdinal
@Nullable public static @Nullable GridDhtPartitionState fromOrdinal(int ord)
- Parameters:
ord- Ordinal value.- Returns:
- Enum value.
-
active
public boolean active()
- Returns:
Trueif state is active or owning.
-
-