@Override public boolean existsAdjLabel(Link link) { checkNotNull(link, LINK_NULL); return adjLabelMap.containsKey(link); }
@Override public boolean existsGlobalNodeLabel(DeviceId id) { checkNotNull(id, DEVICE_ID_NULL); return globalNodeLabelMap.containsKey(id); }
@Override public boolean existsGlobalNodeLabel(DeviceId id) { checkNotNull(id, DEVICE_ID_NULL); return globalNodeLabelMap.containsKey(id); }
@Override public boolean existsTunnelInfo(TunnelId tunnelId) { checkNotNull(tunnelId, TUNNEL_ID_NULL); return tunnelInfoMap.containsKey(tunnelId); }
@Override public boolean existsTunnelInfo(TunnelId tunnelId) { checkNotNull(tunnelId, TUNNEL_ID_NULL); return tunnelInfoMap.containsKey(tunnelId); }
@Override public boolean existsAdjLabel(Link link) { checkNotNull(link, LINK_NULL); return adjLabelMap.containsKey(link); }
@Override public boolean existsTunnelInfo(TunnelId tunnelId) { checkNotNull(tunnelId, TUNNEL_ID_NULL); return tunnelLabelInfoMap.containsKey(tunnelId); }
@Override public boolean updateTunnelInfo(TunnelId tunnelId, ResourceConsumer tunnelConsumerId) { checkNotNull(tunnelId, TUNNEL_ID_NULL); checkNotNull(tunnelConsumerId, TUNNEL_CONSUMER_ID_NULL); if (!tunnelInfoMap.containsKey((tunnelId))) { log.debug("Tunnel info does not exist whose tunnel id is {}.", tunnelId.toString()); return false; } PceccTunnelInfo tunnelInfo = tunnelInfoMap.get(tunnelId).value(); tunnelInfo.tunnelConsumerId(tunnelConsumerId); tunnelInfoMap.put(tunnelId, tunnelInfo); return true; }
@Override public boolean updateTunnelInfo(TunnelId tunnelId, List<LspLocalLabelInfo> lspLocalLabelInfoList) { checkNotNull(tunnelId, TUNNEL_ID_NULL); checkNotNull(lspLocalLabelInfoList, LSP_LOCAL_LABEL_INFO_NULL); if (!tunnelInfoMap.containsKey((tunnelId))) { log.debug("Tunnel info does not exist whose tunnel id is {}.", tunnelId.toString()); return false; } PceccTunnelInfo tunnelInfo = tunnelInfoMap.get(tunnelId).value(); tunnelInfo.lspLocalLabelInfoList(lspLocalLabelInfoList); tunnelInfoMap.put(tunnelId, tunnelInfo); return true; }