loadConfiguration

private fun loadConfiguration(configData: ByteArray, host: String, serverSecret: String, applicationId: String, bypassSslValidation: Boolean = false, debugMode: Boolean)

Method to load the configuration serializing the data in the EngineConfiguration data class and initializing the host, serverSecret, applicationId and appVersion instances

Parameters

configData

the data from instantiate the EngineConfiguration

host

The host address value of the collector server

serverSecret

The server secret of the personal Ametista backend instance

bypassSslValidation
  • Whether bypass the SSL certificates validation, this for example when is a self-signed the certificate USE WITH CAUTION

applicationId

The identifier of the application to collect its data

debugMode

concerns whether the Engine must send the requests but the server must not collect as real, this is the use-case of a not-production environment