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;
}
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;
}
Aggregations