BUG-2399: take into account new ModificationTypes
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / main / java / org / opendaylight / controller / cluster / datastore / entityownership / EntityOwnershipShardPropsCreator.java
index 2335d2948b2e07ba53c2740266d1a8c16d8275e6..a00f514d791473473f50227167fec518f6c769fd 100644 (file)
@@ -19,11 +19,16 @@ import org.opendaylight.yangtools.yang.model.api.SchemaContext;
  *
  * @author Thomas Pantelis
  */
-public class EntityOwnershipShardPropsCreator implements ShardPropsCreator {
+class EntityOwnershipShardPropsCreator implements ShardPropsCreator {
+    private final String localMemberName;
+
+    EntityOwnershipShardPropsCreator(String localMemberName) {
+        this.localMemberName = localMemberName;
+    }
 
     @Override
     public Props newProps(ShardIdentifier shardId, Map<String, String> peerAddresses,
             DatastoreContext datastoreContext, SchemaContext schemaContext) {
-        return EntityOwnershipShard.props(shardId, peerAddresses, datastoreContext, schemaContext);
+        return EntityOwnershipShard.props(shardId, peerAddresses, datastoreContext, schemaContext, localMemberName);
     }
 }