Search in sources :

Example 36 with LinkKey

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());
    }
}
Also used : LinkKey(com.navercorp.pinpoint.web.vo.LinkKey) LinkData(com.navercorp.pinpoint.web.applicationmap.rawdata.LinkData)

Example 37 with LinkKey

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;
}
Also used : LinkKey(com.navercorp.pinpoint.web.vo.LinkKey)

Aggregations

LinkKey (com.navercorp.pinpoint.web.vo.LinkKey)37 Application (com.navercorp.pinpoint.web.vo.Application)20 Test (org.junit.Test)17 LinkData (com.navercorp.pinpoint.web.applicationmap.rawdata.LinkData)16 LinkDataMap (com.navercorp.pinpoint.web.applicationmap.rawdata.LinkDataMap)14 AcceptApplication (com.navercorp.pinpoint.web.service.map.AcceptApplication)11 Range (com.navercorp.pinpoint.web.vo.Range)11 LinkDataDuplexMap (com.navercorp.pinpoint.web.applicationmap.rawdata.LinkDataDuplexMap)9 ServiceType (com.navercorp.pinpoint.common.trace.ServiceType)7 VirtualLinkMarker (com.navercorp.pinpoint.web.service.map.VirtualLinkMarker)6 TimeHistogram (com.navercorp.pinpoint.web.applicationmap.histogram.TimeHistogram)3 LinkCallData (com.navercorp.pinpoint.web.applicationmap.rawdata.LinkCallData)3 RpcApplication (com.navercorp.pinpoint.web.service.map.RpcApplication)3 HashMap (java.util.HashMap)3 Map (java.util.Map)3 Link (com.navercorp.pinpoint.web.applicationmap.link.Link)2 ArrayList (java.util.ArrayList)2 InvocationOnMock (org.mockito.invocation.InvocationOnMock)2 CreateType (com.navercorp.pinpoint.web.applicationmap.link.CreateType)1 LinkHistogramSummary (com.navercorp.pinpoint.web.applicationmap.link.LinkHistogramSummary)1