Class EnvironmentManager
java.lang.Object
com.sportradar.unifiedodds.sdk.internal.impl.EnvironmentManager
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetApiHost(Environment environment) Gets the API host for specifiedEnvironmentstatic intgetApiPort(Environment environment) Gets the API port for specifiedEnvironmentstatic List<EnvironmentSetting>Gets the list of all possible environment settings (Custom is not listed, as user should manually put MQ and API host)static StringgetMqHost(Environment environment) Gets the MQ host for specifiedEnvironmentstatic EnvironmentSettinggetSetting(Environment environment) Gets the MQ and API settings for specifiedEnvironmentstatic StringgetUsageHost(Environment environment) Gets the Usage host for specifiedEnvironment
-
Field Details
-
DEFAULT_MQ_HOST_PORT
public static final int DEFAULT_MQ_HOST_PORTThe default MQ host port- See Also:
-
-
Constructor Details
-
EnvironmentManager
public EnvironmentManager()
-
-
Method Details
-
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
Gets the MQ and API settings for specifiedEnvironment- Parameters:
environment- theEnvironment- Returns:
- the MQ and API settings for specified
Environment
-
getMqHost
Gets the MQ host for specifiedEnvironment- Parameters:
environment- theEnvironment- Returns:
- Gets the MQ host for specified
Environment
-
getApiHost
Gets the API host for specifiedEnvironment- Parameters:
environment- theEnvironment- Returns:
- Gets the API host for specified
Environment
-
getApiPort
Gets the API port for specifiedEnvironment- Parameters:
environment- theEnvironment- Returns:
- Gets the API port for specified
Environment
-
getUsageHost
Gets the Usage host for specifiedEnvironment- Parameters:
environment- the environment user connects to- Returns:
- the Usage host for specified
Environment
-