use of org.opendaylight.mdsal.dom.store.inmemory.ForeignShardThreePhaseCommitCohort in project controller by opendaylight.
the class ShardProxyTransaction method ready.
@Override
public void ready() {
LOG.debug("Readying transaction for shard {}", shardRoot);
Preconditions.checkNotNull(modification, "Attempting to ready an empty transaction.");
cohorts.add(modification.seal());
for (Entry<DOMDataTreeIdentifier, ForeignShardModificationContext> entry : modification.getChildShards().entrySet()) {
cohorts.add(new ForeignShardThreePhaseCommitCohort(entry.getKey(), entry.getValue()));
}
}
Aggregations