Interface ReplicaMigrationEvent

    • Method Detail

      • getReplicaIndex

        int getReplicaIndex()
        Returns the index of the partition replica. 0th index is primary replica, 1st index is 1st backup and so on.
        Returns:
        the index of the partition replica
      • getSource

        Member getSource()
        Returns the old owner of the migrating partition replica.
        Returns:
        the old owner of the migrating partition replica
      • getDestination

        Member getDestination()
        Returns the new owner of the migrating partition replica.
        Returns:
        the new owner of the migrating partition replica
      • isSuccess

        boolean isSuccess()
        Returns the result of the migration: completed or failed.
        Returns:
        true if the migration completed successfully, false otherwise
      • getElapsedTime

        long getElapsedTime()
        Returns the elapsed the time of this migration in milliseconds.
        Returns:
        elapsed time in milliseconds.
      • getMigrationState

        MigrationState getMigrationState()
        Returns the progress information of the overall migration.
        Returns:
        migration process progress