Example #1
0
 public override void Run()
 {
     Statistics.reset();
     if (_warmUpStores != null)
     {
         foreach (IterableStore store in _warmUpStores)
         {
             store.warmUpCache();
         }
     }
     try
     {
         Scan();
     }
     finally
     {
         try
         {
             Store.close();
         }
         catch (Exception e)
         {
             Progress.failed(e);
             throw new Exception(e);
         }
         finally
         {
             Processor.close();
             Progress.done();
         }
     }
     Statistics.print(Name);
 }