use of com.hazelcast.internal.partition.impl.PartitionStateManager in project hazelcast by hazelcast.
the class BeforePromotionOperation method beforeRun.
@Override
public void beforeRun() throws Exception {
sendMigrationEvent(STARTED);
InternalPartitionServiceImpl service = getService();
PartitionStateManager partitionStateManager = service.getPartitionStateManager();
partitionStateManager.setMigratingFlag(getPartitionId());
}
use of com.hazelcast.internal.partition.impl.PartitionStateManager in project hazelcast by hazelcast.
the class FinalizePromotionOperation method afterRun.
@Override
public void afterRun() throws Exception {
InternalPartitionServiceImpl service = getService();
PartitionStateManager partitionStateManager = service.getPartitionStateManager();
partitionStateManager.clearMigratingFlag(getPartitionId());
sendMigrationEvent(success ? COMPLETED : FAILED);
}
Aggregations