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() |
void |
releasePromotionPermit()
Releases promotion commit permit.
|
MigrationInfo |
setActiveMigration(MigrationInfo migrationInfo)
Sets the active migration if none is set and returns
null , otherwise returns the currently set active migration. |
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 © 2019 Hazelcast, Inc.. All Rights Reserved.