private static void createUpdatePartitionCountTasksForSites(Collection<Integer> localPartitions,
Integer newPartitionCount)
{
Preconditions.checkNotNull(newPartitionCount);
PostSnapshotTask task = new UpdatePartitionCount(newPartitionCount);
assert !localPartitions.isEmpty();
Iterator<Integer> iter = localPartitions.iterator();
while (iter.hasNext()) {
int partition = iter.next();
SnapshotSiteProcessor.m_siteTasksPostSnapshotting.put(partition, task);