Package com.hazelcast.partition
Interface MigrationListener
- All Superinterfaces:
- EventListener
MigrationListener provides the ability to listen to
 partition migration process and events.
- 
Method SummaryModifier and TypeMethodDescriptionvoidmigrationFinished(MigrationState state) Called when the migration process finishes.voidmigrationStarted(MigrationState state) Called when the migration process starts.voidCalled when a partition replica migration is completed successfully.voidCalled when a partition replica migration is failed.
- 
Method Details- 
migrationStartedCalled when the migration process starts. A migration process consists of a group of partition replica migrations which are planned together.When migration process is completed, migrationFinished(MigrationState)is called.- Parameters:
- state- Plan of the migration process
 
- 
migrationFinishedCalled when the migration process finishes. This event denotes ending of migration process which is started bymigrationStarted(MigrationState).Not all of the planned migrations have to be completed. Some of them can be skipped because of a newly created migration plan. If migration process coordinator member (generally the oldest member in cluster) crashes before migration process ends, then this method may not be called at all. - Parameters:
- state- Result of the migration process
 
- 
replicaMigrationCompletedCalled when a partition replica migration is completed successfully.- Parameters:
- event- the event for the partition replica migration
 
- 
replicaMigrationFailedCalled when a partition replica migration is failed.- Parameters:
- event- the event for the partition replica migration
 
 
-