Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
BUG-6937: Add ReachableMember case to Gossiper
[controller.git]
/
opendaylight
/
md-sal
/
sal-remoterpc-connector
/
src
/
main
/
java
/
org
/
opendaylight
/
controller
/
remote
/
rpc
/
registry
/
RoutingTable.java
diff --git
a/opendaylight/md-sal/sal-remoterpc-connector/src/main/java/org/opendaylight/controller/remote/rpc/registry/RoutingTable.java
b/opendaylight/md-sal/sal-remoterpc-connector/src/main/java/org/opendaylight/controller/remote/rpc/registry/RoutingTable.java
index fa93a3b83f03153d4dd031ceda1f67bb6f3d4929..09a987f7e31d289c4f02656e6d187f641d23140e 100644
(file)
--- a/
opendaylight/md-sal/sal-remoterpc-connector/src/main/java/org/opendaylight/controller/remote/rpc/registry/RoutingTable.java
+++ b/
opendaylight/md-sal/sal-remoterpc-connector/src/main/java/org/opendaylight/controller/remote/rpc/registry/RoutingTable.java
@@
-14,7
+14,6
@@
import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
-
import org.opendaylight.controller.remote.rpc.registry.gossip.Copier;
import org.opendaylight.controller.sal.connector.api.RpcRouter;
import org.opendaylight.controller.remote.rpc.registry.gossip.Copier;
import org.opendaylight.controller.sal.connector.api.RpcRouter;
@@
-33,7
+32,7
@@
public class RoutingTable implements Copier<RoutingTable>, Serializable {
return copy;
}
return copy;
}
- public Option<Pair<ActorRef, Long>> getRouterFor(RpcRouter.RouteIdentifier<?, ?, ?> routeId){
+ public Option<Pair<ActorRef, Long>> getRouterFor(RpcRouter.RouteIdentifier<?, ?, ?> routeId)
{
Long updatedTime = table.get(routeId);
if (updatedTime == null || router == null) {
Long updatedTime = table.get(routeId);
if (updatedTime == null || router == null) {
@@
-47,19
+46,19
@@
public class RoutingTable implements Copier<RoutingTable>, Serializable {
return table.keySet();
}
return table.keySet();
}
- public void addRoute(RpcRouter.RouteIdentifier<?,
?,?> routeId)
{
+ public void addRoute(RpcRouter.RouteIdentifier<?,
?, ?> routeId)
{
table.put(routeId, System.currentTimeMillis());
}
table.put(routeId, System.currentTimeMillis());
}
- public void removeRoute(RpcRouter.RouteIdentifier<?, ?, ?> routeId){
+ public void removeRoute(RpcRouter.RouteIdentifier<?, ?, ?> routeId)
{
table.remove(routeId);
}
table.remove(routeId);
}
- public boolean contains(RpcRouter.RouteIdentifier<?, ?, ?> routeId){
+ public boolean contains(RpcRouter.RouteIdentifier<?, ?, ?> routeId)
{
return table.containsKey(routeId);
}
return table.containsKey(routeId);
}
- public boolean isEmpty(){
+ public boolean isEmpty()
{
return table.isEmpty();
}
return table.isEmpty();
}
@@
-77,9
+76,6
@@
public class RoutingTable implements Copier<RoutingTable>, Serializable {
@Override
public String toString() {
@Override
public String toString() {
- return "RoutingTable{" +
- "table=" + table +
- ", router=" + router +
- '}';
+ return "RoutingTable{" + "table=" + table + ", router=" + router + '}';
}
}
}
}