Bug 4105: Implement RegisterCandidate in EntityOwnershipShard
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / main / java / org / opendaylight / controller / cluster / datastore / entityownership / EntityOwnershipShardPropsCreator.java
index e28db39456451aa0b4a8ee563c3929fb0dcf48e2..a00f514d791473473f50227167fec518f6c769fd 100644 (file)
@@ -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<String, String> peerAddresses,
             DatastoreContext datastoreContext, SchemaContext schemaContext) {
-        return EntityOwnershipShard.props(shardId, peerAddresses, datastoreContext, schemaContext);
+        return EntityOwnershipShard.props(shardId, peerAddresses, datastoreContext, schemaContext, localMemberName);
     }
 }