@Beta
public interface DistributedShardFactory
| Modifier and Type | Interface and Description |
|---|---|
static interface |
DistributedShardFactory.DistributedShardRegistration
Registration of the CDS shard that allows you to remove the shard from the system by closing the registration.
|
| Modifier and Type | Method and Description |
|---|---|
CompletionStage<DistributedShardFactory.DistributedShardRegistration> |
createDistributedShard(org.opendaylight.mdsal.dom.api.DOMDataTreeIdentifier prefix,
Collection<MemberName> replicaMembers)
Register a new shard that is rooted at the desired prefix with replicas on the provided members.
|
CompletionStage<DistributedShardFactory.DistributedShardRegistration> createDistributedShard(org.opendaylight.mdsal.dom.api.DOMDataTreeIdentifier prefix, Collection<MemberName> replicaMembers) throws org.opendaylight.mdsal.dom.api.DOMDataTreeShardingConflictException
prefix - Shard rootreplicaMembers - Members that this shard is replicated on, has to have at least one Member even if the shard
should not be replicated.org.opendaylight.mdsal.dom.api.DOMDataTreeShardingConflictException - If the initial check for a conflict on the local node fails, the
sharding configuration won't be updated if this exception is thrown.Copyright © 2019 OpenDaylight. All rights reserved.