Bug 7521: Convert byte[] to ShardManagerSnapshot in DatastoreSnapshot
[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 }