Enum Class MigrationPhase
- All Implemented Interfaces:
Serializable,Comparable<MigrationPhase>,Constable
Represents the different phases of metadata store migration.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionMigration completed.Data copy phase.Migration has failed.No migration in progress.Migration preparation phase. -
Method Summary
Modifier and TypeMethodDescriptionstatic MigrationPhaseReturns the enum constant of this class with the specified name.static MigrationPhase[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NOT_STARTED
No migration in progress. Operating normally on source store only. -
PREPARATION
Migration preparation phase. All brokers and bookies are recreating their ephemeral nodes in the target store. -
COPYING
Data copy phase. The migration coordinator is copying persistent data from source to target store. -
COMPLETED
Migration completed. All services are using target store. Source store can be decommissioned after configuration update and restart. -
FAILED
Migration has failed. System has rolled-back to used the old metadata store.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-