use of com.synopsys.integration.phonehome.PhoneHomeClient in project hub-alert by blackducksoftware.
the class PhoneHomeTask method createPhoneHomeService.
private PhoneHomeService createPhoneHomeService(ExecutorService phoneHomeExecutor) {
IntLogger intLogger = new Slf4jIntLogger(logger);
ProxyInfo proxyInfo = proxyManager.createProxyInfoForHost(GoogleAnalyticsConstants.BASE_URL);
IntHttpClient intHttpClient = new IntHttpClient(intLogger, gson, IntHttpClient.DEFAULT_TIMEOUT, true, proxyInfo);
PhoneHomeClient phoneHomeClient = BlackDuckPhoneHomeHelper.createPhoneHomeClient(intLogger, intHttpClient.getClientBuilder(), gson);
return PhoneHomeService.createAsynchronousPhoneHomeService(intLogger, phoneHomeClient, phoneHomeExecutor);
}
Aggregations