X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-distributed-datastore%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fdatastore%2Fentityownership%2FEntityOwnershipShardPropsCreator.java;h=a00f514d791473473f50227167fec518f6c769fd;hb=a785966182ba80592f99be5a27a9af1d4c2ac37f;hp=e28db39456451aa0b4a8ee563c3929fb0dcf48e2;hpb=9883165b61255af5bfcb060b76b16f69a56b1f82;p=controller.git diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/entityownership/EntityOwnershipShardPropsCreator.java b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/entityownership/EntityOwnershipShardPropsCreator.java index e28db39456..a00f514d79 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/entityownership/EntityOwnershipShardPropsCreator.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/entityownership/EntityOwnershipShardPropsCreator.java @@ -20,10 +20,15 @@ import org.opendaylight.yangtools.yang.model.api.SchemaContext; * @author Thomas Pantelis */ class EntityOwnershipShardPropsCreator implements ShardPropsCreator { + private final String localMemberName; + + EntityOwnershipShardPropsCreator(String localMemberName) { + this.localMemberName = localMemberName; + } @Override public Props newProps(ShardIdentifier shardId, Map peerAddresses, DatastoreContext datastoreContext, SchemaContext schemaContext) { - return EntityOwnershipShard.props(shardId, peerAddresses, datastoreContext, schemaContext); + return EntityOwnershipShard.props(shardId, peerAddresses, datastoreContext, schemaContext, localMemberName); } }