Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Increase default negotiation timeout for netconf server to 30s
[controller.git]
/
opendaylight
/
md-sal
/
sal-distributed-datastore
/
src
/
main
/
java
/
org
/
opendaylight
/
controller
/
cluster
/
datastore
/
messages
/
PrimaryFound.java
diff --git
a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/messages/PrimaryFound.java
b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/messages/PrimaryFound.java
index 69502837bcc6c114a1daa98986006ed0bd206aab..a5565020edc171e43d550f7ace0a8dc6a80739e3 100644
(file)
--- a/
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/messages/PrimaryFound.java
+++ b/
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/messages/PrimaryFound.java
@@
-8,13
+8,12
@@
package org.opendaylight.controller.cluster.datastore.messages;
package org.opendaylight.controller.cluster.datastore.messages;
-import org.opendaylight.controller.protobuff.messages.shard.ShardManagerMessages;
public class PrimaryFound implements SerializableMessage {
public class PrimaryFound implements SerializableMessage {
- public static final Class
SERIALIZABLE_CLASS = ShardManagerMessages.
PrimaryFound.class;
+ public static final Class
<PrimaryFound> SERIALIZABLE_CLASS =
PrimaryFound.class;
private final String primaryPath;
private final String primaryPath;
- public PrimaryFound(String primaryPath) {
+ public PrimaryFound(
final
String primaryPath) {
this.primaryPath = primaryPath;
}
this.primaryPath = primaryPath;
}
@@
-23,13
+22,19
@@
public class PrimaryFound implements SerializableMessage {
}
@Override
}
@Override
- public boolean equals(Object o) {
- if (this == o) return true;
- if (o == null || getClass() != o.getClass()) return false;
+ public boolean equals(final Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
PrimaryFound that = (PrimaryFound) o;
PrimaryFound that = (PrimaryFound) o;
- if (!primaryPath.equals(that.primaryPath)) return false;
+ if (!primaryPath.equals(that.primaryPath)) {
+ return false;
+ }
return true;
}
return true;
}
@@
-49,10
+54,10
@@
public class PrimaryFound implements SerializableMessage {
@Override
public Object toSerializable() {
@Override
public Object toSerializable() {
- return
ShardManagerMessages.PrimaryFound.newBuilder().setPrimaryPath(primaryPath).build()
;
+ return
this
;
}
}
- public static PrimaryFound fromSerializable(Object message){
- return
new PrimaryFound(((ShardManagerMessages.PrimaryFound)message).getPrimaryPath())
;
+ public static PrimaryFound fromSerializable(
final
Object message){
+ return
(PrimaryFound) message
;
}
}
}
}