BUG-5280: refactor CohortEntry
[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  * @deprecated This is a deprecated placeholder to keep its inner class present. It serves no other purpose.
15  */
16 @Deprecated
17 public final class ShardManager {
18     /**
19      * We no longer persist SchemaContextModules but keep this class around for now for backwards
20      * compatibility so we don't get de-serialization failures on upgrade from Helium.
21      */
22     @Deprecated
23     public static class SchemaContextModules implements Serializable {
24         private static final long serialVersionUID = -8884620101025936590L;
25
26         private final Set<String> modules;
27
28         public SchemaContextModules(Set<String> modules){
29             this.modules = modules;
30         }
31
32         public Set<String> getModules() {
33             return modules;
34         }
35     }
36
37     private ShardManager() {
38         throw new UnsupportedOperationException("deprecated outer class");
39     }
40 }