Package com.hazelcast.partition
Interface ReplicaMigrationEvent
- All Superinterfaces:
- PartitionEvent
An event fired when a partition replica migration completes or fails.
- See Also:
- 
Method SummaryModifier and TypeMethodDescriptionReturns the new owner of the migrating partition replica.longReturns the elapsed the time of this migration in milliseconds.Returns the progress information of the overall migration.intReturns 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.booleanReturns the result of the migration: completed or failed.Methods inherited from interface com.hazelcast.partition.PartitionEventgetPartitionId
- 
Method Details- 
getReplicaIndexint 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
 
- 
getSourceMember getSource()Returns the old owner of the migrating partition replica.- Returns:
- the old owner of the migrating partition replica
 
- 
getDestinationMember getDestination()Returns the new owner of the migrating partition replica.- Returns:
- the new owner of the migrating partition replica
 
- 
isSuccessboolean isSuccess()Returns the result of the migration: completed or failed.- Returns:
- true if the migration completed successfully, false otherwise
 
- 
getElapsedTimelong getElapsedTime()Returns the elapsed the time of this migration in milliseconds.- Returns:
- elapsed time in milliseconds.
 
- 
getMigrationStateMigrationState getMigrationState()Returns the progress information of the overall migration.- Returns:
- migration process progress
 
 
-