@Test public void testLsaLookup() throws Exception { ospfLsdb.initializeDb(); opaqueLsaHeader = new OpaqueLsaHeader(); ospfLsdb.addLsa(opaqueLsaHeader, true, new OspfInterfaceImpl()); opaqueLsaHeader.setLsType(1); String key = ospfLsdb.getLsaKey(opaqueLsaHeader); assertThat(ospfLsdb.lsaLookup(opaqueLsaHeader), is(nullValue())); }
public LsaWrapper lsaLookup(LsaHeader lsaHeader) { return findLsa(lsaHeader.lsType(), getLsaKey(lsaHeader)); }
OspfLsdbImpl implements OspfLsdb { public LsaWrapper lsaLookup(LsaHeader lsaHeader) { return findLsa(lsaHeader.lsType(), getLsaKey(lsaHeader)); } }
OspfLsdbImpl implements OspfLsdb { public LsaWrapper lsaLookup(LsaHeader lsaHeader) { return findLsa(lsaHeader.lsType(), getLsaKey(lsaHeader)); } OspfLsdbImpl(OspfArea ospfArea); }
OspfLsdbImpl implements OspfLsdb { public LsaWrapper lsaLookup(LsaHeader lsaHeader) { return findLsa(lsaHeader.lsType(), getLsaKey(lsaHeader)); } OspfLsdbImpl(OspfArea ospfArea); @Override boolean equals(Object o); @Override int hashCode(); void initializeDb(); List getAllLsaHeaders(boolean excludeMaxAgeLsa, boolean isOpaqueCapable); String getLsaKey(LsaHeader lsaHeader); LsaWrapper lsaLookup(LsaHeader lsaHeader); LsaWrapper findLsa(int lsType, String lsaKey); boolean addLsa(LsaHeader newLsa, boolean isSelfOriginated, OspfInterface ospfInterface); void addLsaToMaxAgeBin(String key, Object wrapper); void removeLsaFromBin(Object lsaWrapper); String isNewerOrSameLsa(LsaHeader lsa1, LsaHeader lsa2); long getLsSequenceNumber(OspfLsaType lsaType); void deleteLsa(LsaHeader lsaHeader); void setRouterLsaSeqNo(long routerLsaSeqNo); void setNetworkLsaSeqNo(long networkLsaSeqNo); }
OspfLsdbImpl implements OspfLsdb { public LsaWrapper lsaLookup(LsaHeader lsaHeader) { return findLsa(lsaHeader.lsType(), getLsaKey(lsaHeader)); } OspfLsdbImpl(OspfArea ospfArea); @Override boolean equals(Object o); @Override int hashCode(); void initializeDb(); List getAllLsaHeaders(boolean excludeMaxAgeLsa, boolean isOpaqueCapable); String getLsaKey(LsaHeader lsaHeader); LsaWrapper lsaLookup(LsaHeader lsaHeader); LsaWrapper findLsa(int lsType, String lsaKey); boolean addLsa(LsaHeader newLsa, boolean isSelfOriginated, OspfInterface ospfInterface); void addLsaToMaxAgeBin(String key, Object wrapper); void removeLsaFromBin(Object lsaWrapper); String isNewerOrSameLsa(LsaHeader lsa1, LsaHeader lsa2); long getLsSequenceNumber(OspfLsaType lsaType); void deleteLsa(LsaHeader lsaHeader); void setRouterLsaSeqNo(long routerLsaSeqNo); void setNetworkLsaSeqNo(long networkLsaSeqNo);  }