public interface MigrationListener extends EventListener
Partition,
PartitionService,
MigrationState,
ReplicaMigrationEvent| Modifier and Type | Method and Description |
|---|---|
void |
migrationFinished(MigrationState state)
Called when the migration process finishes.
|
void |
migrationStarted(MigrationState state)
Called when the migration process starts.
|
void |
replicaMigrationCompleted(ReplicaMigrationEvent event)
Called when a partition replica migration is completed successfully.
|
void |
replicaMigrationFailed(ReplicaMigrationEvent event)
Called when a partition replica migration is failed.
|
void migrationStarted(MigrationState state)
When migration process is completed, migrationFinished(MigrationState)
is called.
state - Plan of the migration processvoid migrationFinished(MigrationState state)
migrationStarted(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.
state - Result of the migration processvoid replicaMigrationCompleted(ReplicaMigrationEvent event)
event - the event for the partition replica migrationvoid replicaMigrationFailed(ReplicaMigrationEvent event)
event - the event for the partition replica migrationCopyright © 2020 Hazelcast, Inc.. All rights reserved.