コード例 #1
0
 public EUEEntryHandler(EUEConfiguration conf)
 {
     this.conf             = conf;
     startTime             = Time.CurrentTimeMillis();
     dataExchangeAPIClient = NewClient(conf);
     isDebug = conf.IsDebugEnabled;
 }
コード例 #2
0
 internal MonitoringHelper(MonitoringSupplier monitoringSupplier, IDataExchangeAPIClient client, IList <string> parentPath, string charset)
 {
     this.monitoringSupplier = monitoringSupplier;
     this.client             = client;
     this.parentPath         = parentPath;
     this.charset            = charset;
 }
コード例 #3
0
        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);
        }
コード例 #4
0
 /// <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);
 }
コード例 #5
0
ファイル: NeoloadApi.cs プロジェクト: sknopper/Packages
 public void ConnectToDataExchangeApi(string dataExchangeApiUrl, string apiKey, NeoloadContextData ctx)
 {
     context = CreateContext(ctx);
     this.dataExchangeClient = DataExchangeAPIClientFactory.NewClient(dataExchangeApiUrl, context, apiKey);
 }