X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-remoterpc-connector%2Fimplementation%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Fconnector%2Fremoterpc%2FRemoteRpcProvider.java;h=76df25682e1b79df3f7762ac1fb8094dac5eda18;hp=53fbb929bb3a5c5942851a224f71c263f6ec2305;hb=45945db0a3e5bb30c698d2de6af92dacb4b54f4b;hpb=1c79202684429691381362a27303514f8d2cb59f diff --git a/opendaylight/md-sal/sal-remoterpc-connector/implementation/src/main/java/org/opendaylight/controller/sal/connector/remoterpc/RemoteRpcProvider.java b/opendaylight/md-sal/sal-remoterpc-connector/implementation/src/main/java/org/opendaylight/controller/sal/connector/remoterpc/RemoteRpcProvider.java index 53fbb929bb..76df25682e 100644 --- a/opendaylight/md-sal/sal-remoterpc-connector/implementation/src/main/java/org/opendaylight/controller/sal/connector/remoterpc/RemoteRpcProvider.java +++ b/opendaylight/md-sal/sal-remoterpc-connector/implementation/src/main/java/org/opendaylight/controller/sal/connector/remoterpc/RemoteRpcProvider.java @@ -58,7 +58,7 @@ public class RemoteRpcProvider implements private ProviderSession brokerSession; private RpcProvisionRegistry rpcProvisionRegistry; private BundleContext context; - private ServiceTracker clusterTracker; + private ServiceTracker clusterTracker; public RemoteRpcProvider(ServerImpl server, ClientImpl client) { this.server = server; @@ -170,8 +170,8 @@ public class RemoteRpcProvider implements } - private RoutingTable getRoutingTable(){ - Optional> routingTable = + private RoutingTable, String> getRoutingTable(){ + Optional, String>> routingTable = routingTableProvider.getRoutingTable(); checkState(routingTable.isPresent(), "Routing table is null"); @@ -191,7 +191,7 @@ public class RemoteRpcProvider implements RouteIdentifierImpl routeId = new RouteIdentifierImpl(); routeId.setType(rpc); - RoutingTable routingTable = getRoutingTable(); + RoutingTable, String> routingTable = getRoutingTable(); try { routingTable.addGlobalRoute(routeId, server.getServerAddress()); @@ -212,7 +212,7 @@ public class RemoteRpcProvider implements RouteIdentifierImpl routeId = new RouteIdentifierImpl(); routeId.setType(rpc); - RoutingTable routingTable = getRoutingTable(); + RoutingTable, String> routingTable = getRoutingTable(); try { routingTable.removeGlobalRoute(routeId); @@ -245,9 +245,9 @@ public class RemoteRpcProvider implements * * @param announcements */ - private void announce(Set announcements) { + private void announce(Set> announcements) { _logger.debug("Announcing [{}]", announcements); - RoutingTable routingTable = getRoutingTable(); + RoutingTable, String> routingTable = getRoutingTable(); try { routingTable.addRoutes(announcements, server.getServerAddress()); } catch (RoutingTableException | SystemException e) { @@ -259,9 +259,9 @@ public class RemoteRpcProvider implements * * @param removals */ - private void remove(Set removals){ + private void remove(Set> removals){ _logger.debug("Removing [{}]", removals); - RoutingTable routingTable = getRoutingTable(); + RoutingTable, String> routingTable = getRoutingTable(); try { routingTable.removeRoutes(removals, server.getServerAddress()); } catch (RoutingTableException | SystemException e) { @@ -274,9 +274,9 @@ public class RemoteRpcProvider implements * @param changes * @return */ - private Set getRouteIdentifiers(Map> changes) { + private Set> getRouteIdentifiers(Map> changes) { RouteIdentifierImpl routeId = null; - Set routeIdSet = new HashSet(); + Set> routeIdSet = new HashSet<>(); for (RpcRoutingContext context : changes.keySet()){ routeId = new RouteIdentifierImpl();