use of org.opendaylight.genius.idmanager.IdHolder in project genius by opendaylight.
the class IdHolderSyncJob method call.
@Override
public List<ListenableFuture<Void>> call() {
IdPoolBuilder idPool = new IdPoolBuilder().setKey(new IdPoolKey(localPoolName));
idHolder.refreshDataStore(idPool);
InstanceIdentifier<IdPool> localPoolInstanceIdentifier = idUtils.getIdPoolInstance(localPoolName);
return Collections.singletonList(txRunner.callWithNewWriteOnlyTransactionAndSubmit(tx -> {
tx.merge(CONFIGURATION, localPoolInstanceIdentifier, idPool.build(), true);
idUtils.incrementPoolUpdatedMap(localPoolName);
if (LOG.isDebugEnabled()) {
LOG.debug("IdHolder synced {}", idHolder);
}
}));
}
Aggregations