Search in sources :

Example 1 with ForeignShardThreePhaseCommitCohort

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()));
    }
}
Also used : ForeignShardThreePhaseCommitCohort(org.opendaylight.mdsal.dom.store.inmemory.ForeignShardThreePhaseCommitCohort) DOMDataTreeIdentifier(org.opendaylight.mdsal.dom.api.DOMDataTreeIdentifier) ForeignShardModificationContext(org.opendaylight.mdsal.dom.spi.shard.ForeignShardModificationContext)

Aggregations

DOMDataTreeIdentifier (org.opendaylight.mdsal.dom.api.DOMDataTreeIdentifier)1 ForeignShardModificationContext (org.opendaylight.mdsal.dom.spi.shard.ForeignShardModificationContext)1 ForeignShardThreePhaseCommitCohort (org.opendaylight.mdsal.dom.store.inmemory.ForeignShardThreePhaseCommitCohort)1