Do not use protobuf serialization for FindPrimary and it's responses
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / main / java / org / opendaylight / controller / cluster / datastore / messages / PrimaryFound.java
index d6aae3786fc3e4f1e08eda17c168345c83073dc9..a2f6701524a7f4d2f42a4ce93b4463d368414659 100644 (file)
@@ -8,7 +8,9 @@
 
 package org.opendaylight.controller.cluster.datastore.messages;
 
-public class PrimaryFound {
+
+public class PrimaryFound implements SerializableMessage {
+  public static final Class SERIALIZABLE_CLASS = PrimaryFound.class;
   private final String primaryPath;
 
   public PrimaryFound(String primaryPath) {
@@ -44,4 +46,12 @@ public class PrimaryFound {
   }
 
 
+  @Override
+  public Object toSerializable() {
+    return  this;
+  }
+
+  public static PrimaryFound fromSerializable(Object message){
+    return (PrimaryFound) message;
+  }
 }