-/*
- * Copyright (c) 2015 Dell Inc. and others. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- */
-
-package org.opendaylight.controller.cluster.datastore;
-
-import com.google.common.base.Preconditions;
-import java.io.ObjectStreamException;
-import java.io.Serializable;
-import java.util.ArrayList;
-import java.util.Collections;
-import java.util.List;
-import javax.annotation.Nonnull;
-
-/**
- * Persisted data of the ShardManager.
- *
- * @deprecated Use {@link org.opendaylight.controller.cluster.datastore.shardmanager.ShardManagerSnapshot} instead.
- * This class is scheduled for removal once persistence migration from Beryllium is no longer needed.
- */
-@Deprecated
-public class ShardManagerSnapshot implements Serializable {
- private static final long serialVersionUID = 1L;
- private final List<String> shardList;
-
- public ShardManagerSnapshot(@Nonnull List<String> shardList) {
- this.shardList = new ArrayList<>(Preconditions.checkNotNull(shardList));
- }
-
- public List<String> getShardList() {
- return this.shardList;
- }
-
- @Override
- public String toString() {
- return "ShardManagerSnapshot [ShardList = " + shardList + " ]";
- }
-
- private Object readResolve() throws ObjectStreamException {
- return new org.opendaylight.controller.cluster.datastore.persisted.ShardManagerSnapshot(shardList,
- Collections.emptyMap());
- }
-}