Interface ReplicaMigrationEvent

All Superinterfaces:
PartitionEvent

public interface ReplicaMigrationEvent extends PartitionEvent
An event fired when a partition replica migration completes or fails.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the new owner of the migrating partition replica.
    long
    Returns the elapsed the time of this migration in milliseconds.
    Returns the progress information of the overall migration.
    int
    Returns the index of the partition replica. 0th index is primary replica, 1st index is 1st backup and so on.
    Returns the old owner of the migrating partition replica.
    boolean
    Returns the result of the migration: completed or failed.

    Methods inherited from interface com.hazelcast.partition.PartitionEvent

    getPartitionId
  • Method Details

    • 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