2 * Copyright (c) 2015 Dell Inc. and others. All rights reserved.
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
8 package org.opendaylight.controller.cluster.datastore.shardmanager;
10 import com.google.common.collect.ImmutableList;
11 import java.io.Serializable;
12 import java.util.List;
13 import org.eclipse.jdt.annotation.NonNull;
16 * Persisted data of the ShardManager.
18 * @deprecated Use {@link org.opendaylight.controller.cluster.datastore.persisted.ShardManagerSnapshot} instead.
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;
25 private final List<String> shardList;
27 ShardManagerSnapshot(final @NonNull List<String> shardList) {
28 this.shardList = ImmutableList.copyOf(shardList);
31 private Object readResolve() {
32 return new org.opendaylight.controller.cluster.datastore.persisted.ShardManagerSnapshot(shardList);
36 public String toString() {
37 return "ShardManagerSnapshot [ShardList = " + shardList + " ]";