Enum Class MigrationPhase

java.lang.Object
java.lang.Enum<MigrationPhase>
org.apache.pulsar.common.migration.MigrationPhase
All Implemented Interfaces:
Serializable, Comparable<MigrationPhase>, Constable

public enum MigrationPhase extends Enum<MigrationPhase>
Represents the different phases of metadata store migration.
  • Enum Constant Details

    • NOT_STARTED

      public static final MigrationPhase NOT_STARTED
      No migration in progress. Operating normally on source store only.
    • PREPARATION

      public static final MigrationPhase PREPARATION
      Migration preparation phase. All brokers and bookies are recreating their ephemeral nodes in the target store.
    • COPYING

      public static final MigrationPhase COPYING
      Data copy phase. The migration coordinator is copying persistent data from source to target store.
    • COMPLETED

      public static final MigrationPhase COMPLETED
      Migration completed. All services are using target store. Source store can be decommissioned after configuration update and restart.
    • FAILED

      public static final MigrationPhase FAILED
      Migration has failed. System has rolled-back to used the old metadata store.
  • Method Details

    • values

      public static MigrationPhase[] 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

      public static MigrationPhase valueOf(String name)
      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 name
      NullPointerException - if the argument is null