Search in sources :

Example 6 with IntLogger

use of com.synopsys.integration.log.IntLogger 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)6 Slf4jIntLogger (com.synopsys.integration.log.Slf4jIntLogger)5 IntegrationException (com.synopsys.integration.exception.IntegrationException)3 TestTags (com.synopsys.integration.alert.test.common.TestTags)2 BlackDuckHttpClient (com.synopsys.integration.blackduck.http.client.BlackDuckHttpClient)2 BlackDuckServicesFactory (com.synopsys.integration.blackduck.service.BlackDuckServicesFactory)2 HttpUrl (com.synopsys.integration.rest.HttpUrl)2 IntHttpClient (com.synopsys.integration.rest.client.IntHttpClient)2 Test (org.junit.jupiter.api.Test)2 Gson (com.google.gson.Gson)1 Application (com.synopsys.integration.alert.Application)1 AlertException (com.synopsys.integration.alert.api.common.model.exception.AlertException)1 AlertRuntimeException (com.synopsys.integration.alert.api.common.model.exception.AlertRuntimeException)1 StatefulProvider (com.synopsys.integration.alert.api.provider.state.StatefulProvider)1 SlackDescriptor (com.synopsys.integration.alert.channel.slack.descriptor.SlackDescriptor)1 ChannelDescriptor (com.synopsys.integration.alert.common.descriptor.ChannelDescriptor)1 FrequencyType (com.synopsys.integration.alert.common.enumeration.FrequencyType)1 NotificationAccessor (com.synopsys.integration.alert.common.persistence.accessor.NotificationAccessor)1 FieldValueModel (com.synopsys.integration.alert.common.rest.model.FieldValueModel)1 ApplicationConfiguration (com.synopsys.integration.alert.configuration.ApplicationConfiguration)1