Class ConfigurationClientFactory

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static ConfigurationClient create(String recorderId, String productCode, String productVersion, Boolean isTestConfiguration, FusHttpClient httpClient, RegionCode regionCode, FusJsonSerializer serializer) The remote client periodically downloads configuration for the given recorder id, product code and product version.
      final static ConfigurationClient create(String configurationString, String productCode, String productVersion, FusJsonSerializer serializer) The local client reads configuration from the java.io.Reader.
      final static ConfigurationClient createTest(String productCode, String productVersion, FusHttpClient httpClient, String configurationUrl, FusJsonSerializer serializer) The test client periodically downloads configuration from the given test configuration url.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ConfigurationClientFactory

        ConfigurationClientFactory()
    • Method Detail

      • create

         final static ConfigurationClient create(String recorderId, String productCode, String productVersion, Boolean isTestConfiguration, FusHttpClient httpClient, RegionCode regionCode, FusJsonSerializer serializer)

        The remote client periodically downloads configuration for the given recorder id, product code and product version.

        Parameters:
        recorderId - Recorder id
        productCode - Product code
        productVersion - Product version
        isTestConfiguration - Set it to true to use the test configuration url, otherwise set it false to use the production one.
        httpClient - FUS-client supports java http client com.jetbrains.fus.reporting.jvm.JvmHttpClient, You can configure it or use another http client com.jetbrains.fus.reporting.FusHttpClient.
        regionCode - The region code for the downloading configuration, configuration url depends on the region code.
        serializer - FUS-client supports jackson serialization com.jetbrains.fus.reporting.serialization.FusJacksonSerializer, kotlin serialization com.jetbrains.fus.reporting.serialization.FusKotlinSerializer.
      • create

         final static ConfigurationClient create(String configurationString, String productCode, String productVersion, FusJsonSerializer serializer)

        The local client reads configuration from the java.io.Reader. Note: It is the caller's responsibility to close this reader.

      • createTest

         final static ConfigurationClient createTest(String productCode, String productVersion, FusHttpClient httpClient, String configurationUrl, FusJsonSerializer serializer)

        The test client periodically downloads configuration from the given test configuration url. The frequency can be set, it is 10 minutes by default.