"identity: {0}, " + "newNode: {1}}",
id, newNodeId);
for (IdentityRelocationListener listener :
idRelocationListeners)
{
final SimpleCompletionHandler handler =
new PrepareMoveCompletionHandler(id);
handlerQueue.add(handler);
TaskReservation res =
taskScheduler.reserveTask(
new MapRelocateTask(listener, id, newNodeId,
handler),
taskOwner);
pendingNotifications.add(res);
}
return;
}
}
// The normal case.
for (final IdentityRelocationListener listener :
idRelocationListeners)
{
final SimpleCompletionHandler handler =
new PrepareMoveCompletionHandler(id);
handlerQueue.add(handler);
taskScheduler.scheduleTask(
new MapRelocateTask(listener, id, newNodeId, handler),
taskOwner);