Example #1
0
 public void Run(object obj)
 {
     try
     {
         if (command.IsValid())
         {
             command.Execute(parent.cluster, parent.policy, null, node, true);
         }
         parent.ThreadCompleted();
     }
     catch (Exception e)
     {
         // Terminate other query threads.
         parent.StopThreads(e);
     }
 }
 public void Run(object obj)
 {
     try
     {
         if (command.IsValid())
         {
             command.Execute();
         }
         parent.ThreadCompleted();
     }
     catch (Exception e)
     {
         // Terminate other scan threads.
         parent.StopThreads(e);
     }
 }