use of com.navercorp.pinpoint.web.vo.LinkKey in project pinpoint by naver.
the class LinkListFactory method appendLinkHistogram.
private static void appendLinkHistogram(Link link, LinkDataDuplexMap linkDataDuplexMap) {
logger.debug("appendLinkHistogram link:{}", link);
LinkKey key = link.getLinkKey();
LinkData sourceLinkData = linkDataDuplexMap.getSourceLinkData(key);
if (sourceLinkData != null) {
link.addSource(sourceLinkData.getLinkCallDataMap());
}
LinkData targetLinkData = linkDataDuplexMap.getTargetLinkData(key);
if (targetLinkData != null) {
link.addTarget(targetLinkData.getLinkCallDataMap());
}
}
use of com.navercorp.pinpoint.web.vo.LinkKey in project pinpoint by naver.
the class LinkList method addLink.
public boolean addLink(Link link) {
Objects.requireNonNull(link, "link");
final LinkKey linkId = link.getLinkKey();
final Link find = this.linkMap.get(linkId);
if (find != null) {
return false;
}
return this.linkMap.put(linkId, link) == null;
}
Aggregations