コード例 #1
0
        private ExecutionEvent(ExecuteResult result, String threadGroup, String hostname, Boolean isTransactionSampleEvent)
        {
            String hn = "";

            try
            {
                hn = Dns.GetHostName();
            }
            catch (SocketException e)
            {
                log.Error("Cannot obtain local host name " + e);
            }
            HOSTNAME = hn;

            String vars = NetMeterUtils.getProperty(SAMPLE_VARIABLES);

            variableNames = vars != null?vars.Split(',') : new String[0];

            varCount = variableNames.Length;

            if (varCount > 0)
            {
                log.Info(varCount + " sample_variables have been declared: " + vars);
            }
            this.result        = result;
            this.threadGroup   = threadGroup;
            this.hostname      = hostname;
            values             = new String[variableNames.Length];
            this.isTransaction = isTransactionSampleEvent;
        }
コード例 #2
0
 private void PreloadVariables()
 {
     foreach (String prop in PRE_LOAD)
     {
         String value = NetMeterUtils.getProperty(prop);
         if (value != null)
         {
             variables.Add(prop, value);
         }
     }
 }