BUG 2138: Introduce prefix based shards into ShardManager
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / main / java / org / opendaylight / controller / cluster / datastore / messages / CreatePrefixedShard.java
1 /*
2  * Copyright (c) 2016 Cisco Systems, Inc. and others. All rights reserved.
3  *
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
7  */
8 package org.opendaylight.controller.cluster.datastore.messages;
9
10 import org.opendaylight.controller.cluster.datastore.DatastoreContext;
11 import org.opendaylight.controller.cluster.datastore.Shard;
12 import org.opendaylight.controller.cluster.datastore.config.PrefixShardConfiguration;
13
14 /**
15  * Message sent to the ShardManager to create a shard located at a certain logical position in the dataTree.
16  */
17 public class CreatePrefixedShard {
18
19     private final PrefixShardConfiguration config;
20     private final DatastoreContext context;
21     private final Shard.Builder builder;
22
23     public CreatePrefixedShard(final PrefixShardConfiguration config,
24                                final DatastoreContext context,
25                                final Shard.Builder builder) {
26         this.config = config;
27         this.context = context;
28         this.builder = builder;
29     }
30
31     public PrefixShardConfiguration getConfig() {
32         return config;
33     }
34
35     public DatastoreContext getContext() {
36         return context;
37     }
38
39     public Shard.Builder getShardBuilder() {
40         return builder;
41     }
42 }

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.