Package com.hazelcast.partition
Interface MigrationState
-
public interface MigrationState
MigrationState shows statistical information about the migration, such as; migration start time, number of planned replica migrations, number of completed replica migrations, total elapsed migration time etc.- See Also:
MigrationListener
,ReplicaMigrationEvent
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getCompletedMigrations()
Returns the number of completed migrations in the migration plan.int
getPlannedMigrations()
Returns the number of planned migrations in the migration plan.int
getRemainingMigrations()
Returns the number of remaining migrations in the migration plan.long
getStartTime()
Returns the start time of the migration in milliseconds since the epoch.long
getTotalElapsedTime()
Returns the total elapsed time of completed migrations in milliseconds.
-
-
-
Method Detail
-
getStartTime
long getStartTime()
Returns the start time of the migration in milliseconds since the epoch.- Returns:
- start time of the migration process
-
getPlannedMigrations
int getPlannedMigrations()
Returns the number of planned migrations in the migration plan.- Returns:
- number of planned migrations
-
getCompletedMigrations
int getCompletedMigrations()
Returns the number of completed migrations in the migration plan.- Returns:
- number of completed migrations
-
getRemainingMigrations
int getRemainingMigrations()
Returns the number of remaining migrations in the migration plan.- Returns:
- number of remaining migrations
-
getTotalElapsedTime
long getTotalElapsedTime()
Returns the total elapsed time of completed migrations in milliseconds.- Returns:
- total elapsed time in milliseconds
-
-