Exemple #1
0
 public void Configure(HashTree testtree, String host)
 {
     log.Info("Creating NetMeterEngine on Host" + host);
     Monitor.Enter(LOCK);
     try
     {
         if (StandardEngine != null && StandardEngine.isActive())
         {
             log.Warn("Engine is busy - cannot create new NetMeterEngine");
             throw new Exception("Engine is busy");
         }
         ownerThread = Thread.CurrentThread;
         StandardEngine = new StandardEngine(host);
         StandardEngine.Configure(testtree);
     }
     finally
     {
         Monitor.Exit(LOCK);
     }
 }
Exemple #2
0
 public void Configure(HashTree testtree, String host)
 {
     log.Info("Creating NetMeterEngine on Host" + host);
     Monitor.Enter(LOCK);
     try
     {
         if (StandardEngine != null && StandardEngine.isActive())
         {
             log.Warn("Engine is busy - cannot create new NetMeterEngine");
             throw new Exception("Engine is busy");
         }
         ownerThread    = Thread.CurrentThread;
         StandardEngine = new StandardEngine(host);
         StandardEngine.Configure(testtree);
     }
     finally
     {
         Monitor.Exit(LOCK);
     }
 }