Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix illegal check in CreateTransactionReply
[controller.git]
/
opendaylight
/
md-sal
/
sal-distributed-datastore
/
src
/
main
/
java
/
org
/
opendaylight
/
controller
/
cluster
/
datastore
/
messages
/
FindPrimary.java
diff --git
a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/messages/FindPrimary.java
b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/messages/FindPrimary.java
index f2497e6517f376e4d7173efdbd4aeb21596d3990..9eba5c66928297a7d54ff38a097fe45a12f11bac 100644
(file)
--- a/
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/messages/FindPrimary.java
+++ b/
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/messages/FindPrimary.java
@@
-9,23
+9,36
@@
package org.opendaylight.controller.cluster.datastore.messages;
import com.google.common.base.Preconditions;
package org.opendaylight.controller.cluster.datastore.messages;
import com.google.common.base.Preconditions;
+import java.io.Serializable;
/**
/**
- * The FindPrimary message is used to locate the primary of any given shard
- *
- * TODO : Make this serializable
+ * The FindPrimary message is used to locate the primary of any given shard.
*/
*/
-public class FindPrimary{
+public class FindPrimary implements Serializable {
+ private static final long serialVersionUID = 1L;
+
private final String shardName;
private final String shardName;
+ private final boolean waitUntilReady;
- public FindPrimary(String shardName
)
{
+ public FindPrimary(String shardName
, boolean waitUntilReady)
{
Preconditions.checkNotNull(shardName, "shardName should not be null");
this.shardName = shardName;
Preconditions.checkNotNull(shardName, "shardName should not be null");
this.shardName = shardName;
+ this.waitUntilReady = waitUntilReady;
}
public String getShardName() {
return shardName;
}
}
public String getShardName() {
return shardName;
}
+
+ public boolean isWaitUntilReady() {
+ return waitUntilReady;
+ }
+
+ @Override
+ public String toString() {
+ return getClass().getName() + " [shardName=" + shardName
+ + ", waitUntilReady=" + waitUntilReady + "]";
+ }
}
}