Package io.ryos.rhino.sdk
Class SimulationConfig
- java.lang.Object
-
- io.ryos.rhino.sdk.SimulationConfig
-
public class SimulationConfig extends java.lang.Object
Simulation configuration instances are used to configure Rhino tests.- Since:
- 1.0.0
- Author:
- Erhan Bagdemir
- See Also:
Simulation
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
debugHttp()
static java.lang.String
getApiKey()
static java.lang.String
getAuthServer()
static java.lang.String
getBearerType()
static java.lang.String
getClientCode()
static java.lang.String
getClientId()
static java.lang.String
getClientSecret()
static java.lang.String
getConfig(java.lang.String component, java.lang.String property)
static java.lang.String
getEnvConfig(java.lang.String component, java.lang.String property)
static java.lang.String
getGrafanaEndpoint()
static java.lang.String
getGrafanaPassword()
static java.lang.String
getGrafanaToken()
static java.lang.String
getGrafanaUser()
static java.lang.String
getGrantType()
static java.lang.String
getHeaderName()
static int
getHttpConnectTimeout()
static int
getHttpHandshakeTimeout()
static int
getHttpReadTimeout()
static int
getHttpRequestTimeout()
static int
getInfluxBatchActions()
static int
getInfluxBatchDuration()
static java.lang.String
getInfluxDBName()
static java.lang.String
getInfluxPassword()
static java.lang.String
getInfluxRetentionPolicy()
static java.lang.String
getInfluxURL()
static java.lang.String
getInfluxUsername()
static int
getMaxConnections()
static java.lang.String
getNode()
static java.lang.String
getPackage()
static int
getParallelisation()
static RampupInfo
getRampupInfo(java.lang.Class simulation)
static java.lang.String
getServiceClientCode()
static java.lang.String
getServiceClientId()
static java.lang.String
getServiceClientSecret()
static java.lang.String
getServiceEndpoint()
static java.lang.String
getServiceGrantType()
static java.lang.String
getSimulationId()
static java.lang.String
getSimulationOutputStyle()
static java.lang.String
getUserFileSource()
static UserSource.SourceType
getUserSource()
static java.lang.String
getVaultEndpoint()
static java.lang.String
getVaultPath()
static java.lang.String
getVaultToken()
static boolean
isServiceAuthenticationEnabled()
static SimulationConfig
newInstance(java.lang.String path, Environment environment)
Factory method which creates a new singletonSimulationConfig
instance.
-
-
-
Method Detail
-
newInstance
public static SimulationConfig newInstance(java.lang.String path, Environment environment)
Factory method which creates a new singletonSimulationConfig
instance.SimulationConfig
instances are bound to their configuration paths. If the configuration path does differ from the existing singleton instance, a new object will be created with the configuration path given, and the existing one will be discarded.- Parameters:
path
- Path to the configuration properties.environment
- Environment ofEnvironment
.- Returns:
- A new
SimulationConfig
.
-
getEnvConfig
public static java.lang.String getEnvConfig(java.lang.String component, java.lang.String property)
-
getConfig
public static java.lang.String getConfig(java.lang.String component, java.lang.String property)
-
getInfluxBatchActions
public static int getInfluxBatchActions()
-
getInfluxBatchDuration
public static int getInfluxBatchDuration()
-
getInfluxRetentionPolicy
public static java.lang.String getInfluxRetentionPolicy()
-
getSimulationOutputStyle
public static java.lang.String getSimulationOutputStyle()
-
getMaxConnections
public static int getMaxConnections()
-
getHttpConnectTimeout
public static int getHttpConnectTimeout()
-
getHttpReadTimeout
public static int getHttpReadTimeout()
-
getHttpHandshakeTimeout
public static int getHttpHandshakeTimeout()
-
getHttpRequestTimeout
public static int getHttpRequestTimeout()
-
getParallelisation
public static int getParallelisation()
-
debugHttp
public static boolean debugHttp()
-
getUserSource
public static UserSource.SourceType getUserSource()
-
getServiceEndpoint
public static java.lang.String getServiceEndpoint()
-
getPackage
public static java.lang.String getPackage()
-
getClientId
public static java.lang.String getClientId()
-
getClientSecret
public static java.lang.String getClientSecret()
-
getClientCode
public static java.lang.String getClientCode()
-
getGrantType
public static java.lang.String getGrantType()
-
getApiKey
public static java.lang.String getApiKey()
-
getAuthServer
public static java.lang.String getAuthServer()
-
getUserFileSource
public static java.lang.String getUserFileSource()
-
getInfluxURL
public static java.lang.String getInfluxURL()
-
getInfluxDBName
public static java.lang.String getInfluxDBName()
-
getInfluxUsername
public static java.lang.String getInfluxUsername()
-
getInfluxPassword
public static java.lang.String getInfluxPassword()
-
getVaultEndpoint
public static java.lang.String getVaultEndpoint()
-
getVaultToken
public static java.lang.String getVaultToken()
-
getVaultPath
public static java.lang.String getVaultPath()
-
getNode
public static java.lang.String getNode()
-
getSimulationId
public static java.lang.String getSimulationId()
-
getGrafanaEndpoint
public static java.lang.String getGrafanaEndpoint()
-
getGrafanaToken
public static java.lang.String getGrafanaToken()
-
getGrafanaUser
public static java.lang.String getGrafanaUser()
-
getGrafanaPassword
public static java.lang.String getGrafanaPassword()
-
getServiceClientId
public static java.lang.String getServiceClientId()
-
getServiceClientCode
public static java.lang.String getServiceClientCode()
-
getServiceGrantType
public static java.lang.String getServiceGrantType()
-
getServiceClientSecret
public static java.lang.String getServiceClientSecret()
-
getRampupInfo
public static RampupInfo getRampupInfo(java.lang.Class simulation)
-
isServiceAuthenticationEnabled
public static boolean isServiceAuthenticationEnabled()
-
getBearerType
public static java.lang.String getBearerType()
-
getHeaderName
public static java.lang.String getHeaderName()
-
-