Search in sources :

Example 1 with RpcApplication

use of com.navercorp.pinpoint.web.service.map.RpcApplication in project pinpoint by naver.

the class BFSLinkSelector method findAcceptApplication.

private Set<AcceptApplication> findAcceptApplication(Application fromApplication, String host, Range range) {
    logger.debug("findAcceptApplication {} {}", fromApplication, host);
    final RpcApplication rpcApplication = new RpcApplication(host, fromApplication);
    final Set<AcceptApplication> hit = this.acceptApplicationLocalCache.get(rpcApplication);
    if (CollectionUtils.isNotEmpty(hit)) {
        logger.debug("acceptApplicationLocalCache hit {}", rpcApplication);
        return hit;
    }
    final Set<AcceptApplication> acceptApplicationSet = hostApplicationMapDao.findAcceptApplicationName(fromApplication, range);
    this.acceptApplicationLocalCache.put(rpcApplication, acceptApplicationSet);
    Set<AcceptApplication> acceptApplication = this.acceptApplicationLocalCache.get(rpcApplication);
    logger.debug("findAcceptApplication {}->{} result:{}", fromApplication, host, acceptApplication);
    return acceptApplication;
}
Also used : RpcApplication(com.navercorp.pinpoint.web.service.map.RpcApplication) AcceptApplication(com.navercorp.pinpoint.web.service.map.AcceptApplication)

Example 2 with RpcApplication

use of com.navercorp.pinpoint.web.service.map.RpcApplication in project pinpoint by naver.

the class DFSLinkSelector method findAcceptApplication.

private Set<AcceptApplication> findAcceptApplication(Application fromApplication, String host, Range range) {
    logger.debug("findAcceptApplication {} {}", fromApplication, host);
    final RpcApplication rpcApplication = new RpcApplication(host, fromApplication);
    final Set<AcceptApplication> hit = this.acceptApplicationLocalCache.get(rpcApplication);
    if (CollectionUtils.isNotEmpty(hit)) {
        logger.debug("acceptApplicationLocalCache hit {}", rpcApplication);
        return hit;
    }
    final Set<AcceptApplication> acceptApplicationSet = hostApplicationMapDao.findAcceptApplicationName(fromApplication, range);
    this.acceptApplicationLocalCache.put(rpcApplication, acceptApplicationSet);
    Set<AcceptApplication> acceptApplication = this.acceptApplicationLocalCache.get(rpcApplication);
    logger.debug("findAcceptApplication {}->{} result:{}", fromApplication, host, acceptApplication);
    return acceptApplication;
}
Also used : RpcApplication(com.navercorp.pinpoint.web.service.map.RpcApplication) AcceptApplication(com.navercorp.pinpoint.web.service.map.AcceptApplication)

Aggregations

AcceptApplication (com.navercorp.pinpoint.web.service.map.AcceptApplication)2 RpcApplication (com.navercorp.pinpoint.web.service.map.RpcApplication)2