@Test public void testGetAdjLabel() { testAddAdjLabel(); assertThat(link1, is(notNullValue())); assertThat(distrPceStore.getAdjLabel(link1), is(labelId1)); assertThat(link2, is(notNullValue())); assertThat(distrPceStore.getAdjLabel(link2), is(labelId2)); }
@Override public LabelResourceId getAdjLabel(Link link) { checkNotNull(link, LINK_NULL); return adjLabelMap.get(link) == null ? null : adjLabelMap.get(link).value(); }
DistributedPceStore implements PceStore { @Override public LabelResourceId getAdjLabel(Link link) { checkNotNull(link, LINK_NULL); return adjLabelMap.get(link) == null ? null : adjLabelMap.get(link).value(); } }
DistributedPceStore implements PceStore { @Override public LabelResourceId getAdjLabel(Link link) { checkNotNull(link, LINK_NULL); return adjLabelMap.get(link) == null ? null : adjLabelMap.get(link).value(); }  }
DistributedPceStore implements PceStore { @Override public LabelResourceId getAdjLabel(Link link) { checkNotNull(link, LINK_NULL); return adjLabelMap.get(link) == null ? null : adjLabelMap.get(link).value(); }  @Override boolean existsGlobalNodeLabel(DeviceId id); @Override boolean existsAdjLabel(Link link); @Override boolean existsTunnelInfo(TunnelId tunnelId); @Override boolean existsFailedPathInfo(PcePathInfo failedPathInfo); @Override int getGlobalNodeLabelCount(); @Override int getAdjLabelCount(); @Override int getTunnelInfoCount(); @Override int getFailedPathInfoCount(); @Override Map<DeviceId, LabelResourceId> getGlobalNodeLabels(); @Override Map<Link, LabelResourceId> getAdjLabels(); @Override Map<TunnelId, PceccTunnelInfo> getTunnelInfos(); @Override Iterable<PcePathInfo> getFailedPathInfos(); @Override LabelResourceId getGlobalNodeLabel(DeviceId id); @Override LabelResourceId getAdjLabel(Link link); @Override PceccTunnelInfo getTunnelInfo(TunnelId tunnelId); @Override void addGlobalNodeLabel(DeviceId deviceId, LabelResourceId labelId); @Override void addAdjLabel(Link link, LabelResourceId labelId); @Override void addTunnelInfo(TunnelId tunnelId, PceccTunnelInfo pceccTunnelInfo); @Override void addFailedPathInfo(PcePathInfo failedPathInfo); @Override boolean updateTunnelInfo(TunnelId tunnelId, List<LspLocalLabelInfo> lspLocalLabelInfoList); @Override boolean updateTunnelInfo(TunnelId tunnelId, ResourceConsumer tunnelConsumerId); @Override boolean removeGlobalNodeLabel(DeviceId id); @Override boolean removeAdjLabel(Link link); @Override boolean removeTunnelInfo(TunnelId tunnelId); @Override boolean removeFailedPathInfo(PcePathInfo failedPathInfo); @Override boolean addLsrIdDevice(String lsrId, DeviceId deviceId); @Override boolean removeLsrIdDevice(String lsrId); @Override DeviceId getLsrIdDevice(String lsrId); @Override boolean addPccLsr(DeviceId lsrId); @Override boolean removePccLsr(DeviceId lsrId); @Override boolean hasPccLsr(DeviceId lsrId); }
DistributedPceStore implements PceStore { @Override public LabelResourceId getAdjLabel(Link link) { checkNotNull(link, LINK_NULL); return adjLabelMap.get(link) == null ? null : adjLabelMap.get(link).value(); }  @Override boolean existsGlobalNodeLabel(DeviceId id); @Override boolean existsAdjLabel(Link link); @Override boolean existsTunnelInfo(TunnelId tunnelId); @Override boolean existsFailedPathInfo(PcePathInfo failedPathInfo); @Override int getGlobalNodeLabelCount(); @Override int getAdjLabelCount(); @Override int getTunnelInfoCount(); @Override int getFailedPathInfoCount(); @Override Map<DeviceId, LabelResourceId> getGlobalNodeLabels(); @Override Map<Link, LabelResourceId> getAdjLabels(); @Override Map<TunnelId, PceccTunnelInfo> getTunnelInfos(); @Override Iterable<PcePathInfo> getFailedPathInfos(); @Override LabelResourceId getGlobalNodeLabel(DeviceId id); @Override LabelResourceId getAdjLabel(Link link); @Override PceccTunnelInfo getTunnelInfo(TunnelId tunnelId); @Override void addGlobalNodeLabel(DeviceId deviceId, LabelResourceId labelId); @Override void addAdjLabel(Link link, LabelResourceId labelId); @Override void addTunnelInfo(TunnelId tunnelId, PceccTunnelInfo pceccTunnelInfo); @Override void addFailedPathInfo(PcePathInfo failedPathInfo); @Override boolean updateTunnelInfo(TunnelId tunnelId, List<LspLocalLabelInfo> lspLocalLabelInfoList); @Override boolean updateTunnelInfo(TunnelId tunnelId, ResourceConsumer tunnelConsumerId); @Override boolean removeGlobalNodeLabel(DeviceId id); @Override boolean removeAdjLabel(Link link); @Override boolean removeTunnelInfo(TunnelId tunnelId); @Override boolean removeFailedPathInfo(PcePathInfo failedPathInfo); @Override boolean addLsrIdDevice(String lsrId, DeviceId deviceId); @Override boolean removeLsrIdDevice(String lsrId); @Override DeviceId getLsrIdDevice(String lsrId); @Override boolean addPccLsr(DeviceId lsrId); @Override boolean removePccLsr(DeviceId lsrId); @Override boolean hasPccLsr(DeviceId lsrId);  }