Search in sources :

Example 1 with PhoneHomeClient

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);
}
Also used : ProxyInfo(com.synopsys.integration.rest.proxy.ProxyInfo) PhoneHomeClient(com.synopsys.integration.phonehome.PhoneHomeClient) Slf4jIntLogger(com.synopsys.integration.log.Slf4jIntLogger) IntHttpClient(com.synopsys.integration.rest.client.IntHttpClient) IntLogger(com.synopsys.integration.log.IntLogger) Slf4jIntLogger(com.synopsys.integration.log.Slf4jIntLogger)

Aggregations

IntLogger (com.synopsys.integration.log.IntLogger)1 Slf4jIntLogger (com.synopsys.integration.log.Slf4jIntLogger)1 PhoneHomeClient (com.synopsys.integration.phonehome.PhoneHomeClient)1 IntHttpClient (com.synopsys.integration.rest.client.IntHttpClient)1 ProxyInfo (com.synopsys.integration.rest.proxy.ProxyInfo)1