public StressTestHandler(int numberOfThreads, string path, ITextConvertor textConvertor)
 {
     this.textConvertor = textConvertor;
     NumberOfThreads    = numberOfThreads;
     Path        = path;
     ZkActions   = MainWindow.ZkActions;
     KeepRunning = true;
 }
Esempio n. 2
0
 private void CreateZkActions(object zkEnsambleHostList)
 {
     try
     {
         ZkWatcher watcher = new ZkWatcher((string)zkEnsambleHostList);
         ZkActions = new ZkActionsImpl((string)zkEnsambleHostList, new TimeSpan(0, 0, 10), watcher);
         ZkWatcher.ResetEvent.WaitOne();
     }
     catch (Exception ex)
     {
         tblConnection.Text = string.Format("Somekind of Error occurred {0}", ex.ToString());
     }
 }
 public ZkWatcher(string zkEnsambleHostList)
 {
     BasicEventListner = new ZkActionsImpl((string)zkEnsambleHostList, new TimeSpan(0, 0, 10), this);
     this.BasicEventListner.GetData("/", true, new Stat());
 }