Class DefaultRemoteConfig
-
- All Implemented Interfaces:
-
com.jetbrains.fus.reporting.FusComponent,com.jetbrains.fus.reporting.RemoteConfig
public final class DefaultRemoteConfig implements RemoteConfigDefault implementation of RemoteConfig backed by ConfigurationClient. Resolves service endpoints (metadata, dictionary, send) and options for a given client configuration.
-
-
Constructor Summary
Constructors Constructor Description DefaultRemoteConfig(FusClientConfig fusClientConfig, MessageBus messageBus, FusLoggerFactory loggerFactory, FusJsonSerializer jsonSerializer, FusHttpClient httpClient)
-
Method Summary
Modifier and Type Method Description StringgetMetadataUrl()StringgetDictionaryUrl()StringgetSendUrl()Map<String, String>provideOptions()Booleanupdate()UnitscheduleUpdate()BooleanisUnreachable()Unitclose()-
-
Constructor Detail
-
DefaultRemoteConfig
DefaultRemoteConfig(FusClientConfig fusClientConfig, MessageBus messageBus, FusLoggerFactory loggerFactory, FusJsonSerializer jsonSerializer, FusHttpClient httpClient)
- Parameters:
fusClientConfig- client configuration that supplies recorder/product codes, version, test flag and metadata versionjsonSerializer- serializer used by the underlying configuration client to (de)serialize payloadshttpClient- HTTP client used by the underlying configuration client to make network requests
-
-
Method Detail
-
getMetadataUrl
String getMetadataUrl()
-
getDictionaryUrl
String getDictionaryUrl()
-
getSendUrl
String getSendUrl()
-
provideOptions
Map<String, String> provideOptions()
-
scheduleUpdate
Unit scheduleUpdate()
-
isUnreachable
Boolean isUnreachable()
-
-
-
-