public class MigrationManager extends Object
Modifier and Type | Method and Description |
---|---|
boolean |
acquirePromotionPermit()
Acquires promotion commit permit which is needed while running promotion commit
to prevent concurrent commits.
|
MigrationStats |
getStats() |
boolean |
isFinalizingMigrationRegistered(int partitionId) |
void |
releasePromotionPermit()
Releases promotion commit permit.
|
boolean |
removeFinalizingMigration(MigrationInfo migration) |
MigrationInfo |
setActiveMigration(MigrationInfo migrationInfo)
Sets the active migration if none is set and returns
null , otherwise returns the currently set active migration. |
public boolean removeFinalizingMigration(MigrationInfo migration)
public boolean isFinalizingMigrationRegistered(int partitionId)
public MigrationInfo setActiveMigration(MigrationInfo migrationInfo)
null
, otherwise returns the currently set active migration.
Acquires the partition service lock.public boolean acquirePromotionPermit()
Normally, promotions are submitted & executed serially but when the commit operation timeouts, it's retried which can cause concurrent execution (promotion commit operation runs on generic operation threads).
Promotion commit operation is idempotent when executed serially.
public void releasePromotionPermit()
acquirePromotionPermit()
public MigrationStats getStats()
Copyright © 2020 Hazelcast, Inc.. All Rights Reserved.