Remove deprecated ShardManagerSnapshot 95/57995/1
authorTom Pantelis <tompantelis@gmail.com>
Mon, 29 May 2017 22:38:07 +0000 (18:38 -0400)
committerTom Pantelis <tompantelis@gmail.com>
Mon, 29 May 2017 22:38:07 +0000 (18:38 -0400)
The original ShardManagerSnapshot was deprecated in Boron and thus should
be safe to remove now.

Change-Id: I643dcf6e06ad4842b69bf1ab1992b028786c83f8
Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/ShardManagerSnapshot.java [deleted file]

diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/ShardManagerSnapshot.java b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/ShardManagerSnapshot.java
deleted file mode 100644 (file)
index a24f314..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * 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());
-    }
-}