2 * Copyright (c) 2015 Brocade Communications Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.controller.cluster.datastore;
10 import akka.actor.Props;
12 import org.opendaylight.controller.cluster.datastore.identifiers.ShardIdentifier;
13 import org.opendaylight.yangtools.yang.model.api.SchemaContext;
16 * Implementation of ShardPropsCreator that creates a Props instance for the Shard class.
18 * @author Thomas Pantelis
20 public class DefaultShardPropsCreator implements ShardPropsCreator {
23 public Props newProps(ShardIdentifier shardId, Map<String, String> peerAddresses,
24 DatastoreContext datastoreContext, SchemaContext schemaContext) {
25 return Shard.props(shardId, peerAddresses, datastoreContext, schemaContext);