Enum UpgradeCoordinator.UpgradeStatus
- java.lang.Object
-
- java.lang.Enum<UpgradeCoordinator.UpgradeStatus>
-
- org.apache.accumulo.manager.upgrade.UpgradeCoordinator.UpgradeStatus
-
- All Implemented Interfaces:
Serializable
,Comparable<UpgradeCoordinator.UpgradeStatus>
- Enclosing class:
- UpgradeCoordinator
public static enum UpgradeCoordinator.UpgradeStatus extends Enum<UpgradeCoordinator.UpgradeStatus>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COMPLETE
This signifies that everything (zookeeper, root table, metadata table) is upgraded.FAILED
This signifies a failure occurred during upgrade.INITIAL
This signifies the upgrade status is in the process of being determined.UPGRADED_ROOT
This signifies that only zookeeper and the root table have been upgraded so far.UPGRADED_ZOOKEEPER
This signifies that only zookeeper has been upgraded so far.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract boolean
isParentLevelUpgraded(KeyExtent extent)
Determines if the place where this extent stores its metadata was upgraded for a given upgrade status.static UpgradeCoordinator.UpgradeStatus
valueOf(String name)
Returns the enum constant of this type with the specified name.static UpgradeCoordinator.UpgradeStatus[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INITIAL
public static final UpgradeCoordinator.UpgradeStatus INITIAL
This signifies the upgrade status is in the process of being determined. Its best to assume nothing is upgraded when seeing this.
-
UPGRADED_ZOOKEEPER
public static final UpgradeCoordinator.UpgradeStatus UPGRADED_ZOOKEEPER
This signifies that only zookeeper has been upgraded so far.
-
UPGRADED_ROOT
public static final UpgradeCoordinator.UpgradeStatus UPGRADED_ROOT
This signifies that only zookeeper and the root table have been upgraded so far.
-
COMPLETE
public static final UpgradeCoordinator.UpgradeStatus COMPLETE
This signifies that everything (zookeeper, root table, metadata table) is upgraded.
-
FAILED
public static final UpgradeCoordinator.UpgradeStatus FAILED
This signifies a failure occurred during upgrade.
-
-
Method Detail
-
values
public static UpgradeCoordinator.UpgradeStatus[] 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 (UpgradeCoordinator.UpgradeStatus c : UpgradeCoordinator.UpgradeStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static UpgradeCoordinator.UpgradeStatus 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
-
isParentLevelUpgraded
public abstract boolean isParentLevelUpgraded(KeyExtent extent)
Determines if the place where this extent stores its metadata was upgraded for a given upgrade status.
-
-