BUG-2138: Create DistributedShardFrontend
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / main / java / org / opendaylight / controller / cluster / datastore / ShardManagerSnapshot.java
index 4cc54dd8e3c694f253bb38bce34fe6d498d7334a..a24f3141b0efdfc4891a3e99dc0ca349efa6bcc0 100644 (file)
@@ -9,15 +9,20 @@
 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
+ * 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;
@@ -34,4 +39,9 @@ public class ShardManagerSnapshot implements Serializable {
     public String toString() {
         return "ShardManagerSnapshot [ShardList = " + shardList + " ]";
     }
+
+    private Object readResolve() throws ObjectStreamException {
+        return new org.opendaylight.controller.cluster.datastore.persisted.ShardManagerSnapshot(shardList,
+                Collections.emptyMap());
+    }
 }