public EUEEntryHandler(EUEConfiguration conf) { this.conf = conf; startTime = Time.CurrentTimeMillis(); dataExchangeAPIClient = NewClient(conf); isDebug = conf.IsDebugEnabled; }
internal MonitoringHelper(MonitoringSupplier monitoringSupplier, IDataExchangeAPIClient client, IList <string> parentPath, string charset) { this.monitoringSupplier = monitoringSupplier; this.client = client; this.parentPath = parentPath; this.charset = charset; }
public void ConnectToDataExchangeApi(string dataExchangeApiUrl, string apiKey, NeoloadContextData ctx) { if (_mode != Mode.RUNTIME && _mode != Mode.END_USER_EXPERIENCE) { return; } context = CreateContext(ctx); if (apiKey == null) { apiKey = String.Empty; } this._dataExchangeClient = DataExchangeAPIClientFactory.NewClient(dataExchangeApiUrl, context, apiKey); }
/// <summary> /// Create a MonitoringHelperBuilder. /// </summary> /// <param name="monitoringSupplier"> : define the monitoring supplier to retrieve the list of XML file containing the monitoring output. </param> /// <param name="client"> : the Data Exchange API client used to send data to the Data Exchange API Server. </param> /// <exception cref="NullPointerException"> if a parameter is null. </exception> public MonitoringHelperBuilder(MonitoringSupplier monitoringSupplier, IDataExchangeAPIClient client) { this.monitoringSupplier = Preconditions.CheckNotNull <MonitoringSupplier>(monitoringSupplier); this.client = Preconditions.CheckNotNull <IDataExchangeAPIClient>(client); }
public void ConnectToDataExchangeApi(string dataExchangeApiUrl, string apiKey, NeoloadContextData ctx) { context = CreateContext(ctx); this.dataExchangeClient = DataExchangeAPIClientFactory.NewClient(dataExchangeApiUrl, context, apiKey); }