Class EnvironmentManager

java.lang.Object
com.sportradar.unifiedodds.sdk.internal.impl.EnvironmentManager

public final class EnvironmentManager extends Object
  • Field Details

    • DEFAULT_MQ_HOST_PORT

      public static final int DEFAULT_MQ_HOST_PORT
      The default MQ host port
      See Also:
  • Constructor Details

    • EnvironmentManager

      public EnvironmentManager()
  • Method Details

    • getEnvironmentSettings

      public static List<EnvironmentSetting> getEnvironmentSettings()
      Gets the list of all possible environment settings (Custom is not listed, as user should manually put MQ and API host)
      Returns:
      the list of all possible environment settings (Custom is not listed, as user should manually put MQ and API host)
    • getSetting

      public static EnvironmentSetting getSetting(Environment environment)
      Gets the MQ and API settings for specified Environment
      Parameters:
      environment - the Environment
      Returns:
      the MQ and API settings for specified Environment
    • getMqHost

      public static String getMqHost(Environment environment)
      Gets the MQ host for specified Environment
      Parameters:
      environment - the Environment
      Returns:
      Gets the MQ host for specified Environment
    • getApiHost

      public static String getApiHost(Environment environment)
      Gets the API host for specified Environment
      Parameters:
      environment - the Environment
      Returns:
      Gets the API host for specified Environment
    • getApiPort

      public static int getApiPort(Environment environment)
      Gets the API port for specified Environment
      Parameters:
      environment - the Environment
      Returns:
      Gets the API port for specified Environment
    • getUsageHost

      public static String getUsageHost(Environment environment)
      Gets the Usage host for specified Environment
      Parameters:
      environment - the environment user connects to
      Returns:
      the Usage host for specified Environment