3021080758b80b5c1c3e4ba2eef9d7f7621863fd
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / main / java / org / opendaylight / controller / cluster / datastore / ShardManager.java
1 /*
2  * Copyright (c) 2014 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;
9
10 import java.io.Serializable;
11 import java.util.Set;
12
13 /**
14  * Manages shards.
15  *
16  * @deprecated This is a deprecated placeholder to keep its inner class present. It serves no other purpose.
17  */
18 @Deprecated
19 public final class ShardManager {
20     /**
21      * We no longer persist SchemaContextModules but keep this class around for now for backwards
22      * compatibility so we don't get de-serialization failures on upgrade from Helium.
23      */
24     @Deprecated
25     public static class SchemaContextModules implements Serializable {
26         private static final long serialVersionUID = -8884620101025936590L;
27
28         private final Set<String> modules;
29
30         public SchemaContextModules(Set<String> modules) {
31             this.modules = modules;
32         }
33
34         public Set<String> getModules() {
35             return modules;
36         }
37     }
38
39     private ShardManager() {
40         throw new UnsupportedOperationException("deprecated outer class");
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.