Hide ShardManagerSnapshot
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / main / java / org / opendaylight / controller / cluster / datastore / shardmanager / ShardManagerSnapshot.java
1 /*
2  * Copyright (c) 2015 Dell 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.shardmanager;
9
10 import com.google.common.collect.ImmutableList;
11 import java.io.Serializable;
12 import java.util.List;
13 import org.eclipse.jdt.annotation.NonNull;
14
15 /**
16  * Persisted data of the ShardManager.
17  *
18  * @deprecated Use {@link org.opendaylight.controller.cluster.datastore.persisted.ShardManagerSnapshot} instead.
19  */
20 // FIXME: 5.0.0: remove this class
21 @Deprecated(forRemoval = true)
22 final class ShardManagerSnapshot implements Serializable {
23     private static final long serialVersionUID = 1L;
24
25     private final List<String> shardList;
26
27     ShardManagerSnapshot(final @NonNull List<String> shardList) {
28         this.shardList = ImmutableList.copyOf(shardList);
29     }
30
31     private Object readResolve() {
32         return new org.opendaylight.controller.cluster.datastore.persisted.ShardManagerSnapshot(shardList);
33     }
34
35     @Override
36     public String toString() {
37         return "ShardManagerSnapshot [ShardList = " + shardList + " ]";
38     }
39 }