Class MongoTrekState.Pending

  • Enclosing class:
    MongoTrekState

    public static class MongoTrekState.Pending
    extends Object

    Migrations State - Pending State

    This class provides the collection of migrations pending application to the system.
    • Method Detail

      • hasPendingMigrations

        public boolean hasPendingMigrations()
        Flag to determine if there is any pending migrations
        Returns:
        true if there are pending migrations
      • getNextPendingVersion

        public String getNextPendingVersion()
        The next migration version to be applied
        Returns:
        the next pending migration version or N/A if none to be applied
      • getLastPendingVersion

        public String getLastPendingVersion()
        The last migration version to be applied
        Returns:
        the next pending migration version or N/A if none to be applied
      • getMigrations

        public List<Migration> getMigrations()
        The list of pending migrations
        Returns:
        The list of pending migrations