Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/01/10 13:58:24 (14 years ago)
Author:
kgrading
Message:

Removed References to HiveLogging and updated the default logging mechanism (#991)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Hive.Engine/3.2/HiveEngine.cs

    r3220 r3578  
    135135          Thread.Sleep(RESULT_POLLING_INTERVAL_MS);
    136136          lock (locker) {
    137             HiveLogger.Debug("HiveEngine: Results-polling - GetLastResult");
     137            Logger.Debug("HiveEngine: Results-polling - GetLastResult");
    138138            response = executionEngineFacade.GetLastSerializedResult(jobId, false);
    139             HiveLogger.Debug("HiveEngine: Results-polling - Server: " + response.StatusMessage + " success: " + response.Success);
     139            Logger.Debug("HiveEngine: Results-polling - Server: " + response.StatusMessage + " success: " + response.Success);
    140140            // loop while
    141141            // 1. the user doesn't request an abort
     
    145145            if (abortRequested) return;
    146146            if (response.Success && response.Obj != null) {
    147               HiveLogger.Debug("HiveEngine: Results-polling - Got result!");
     147              Logger.Debug("HiveEngine: Results-polling - Got result!");
    148148              restoredJob = (Job)PersistenceManager.RestoreFromGZip(response.Obj.SerializedJobData);
    149               HiveLogger.Debug("HiveEngine: Results-polling - IsSnapshotResult: " + (restoredJob.Progress<1.0));
     149              Logger.Debug("HiveEngine: Results-polling - IsSnapshotResult: " + (restoredJob.Progress < 1.0));
    150150            }
    151151          }
     
    157157        OnFinished();
    158158      });
    159       HiveLogger.Debug("HiveEngine: Starting results-polling thread");
     159      Logger.Debug("HiveEngine: Starting results-polling thread");
    160160      t.Start();
    161161    }
     
    166166      ResponseObject<SerializedJob> response;
    167167      lock (locker) {
    168         HiveLogger.Debug("HiveEngine: Abort - RequestSnapshot");
     168        Logger.Debug("HiveEngine: Abort - RequestSnapshot");
    169169        Response snapShotResponse = executionEngineFacade.RequestSnapshot(jobId);
    170170        if (snapShotResponse.StatusMessage == ApplicationConstants.RESPONSE_JOB_IS_NOT_BEEING_CALCULATED) {
    171171          // job is finished already
    172           HiveLogger.Debug("HiveEngine: Abort - GetLastResult(false)");
     172          Logger.Debug("HiveEngine: Abort - GetLastResult(false)");
    173173          response = executionEngineFacade.GetLastSerializedResult(jobId, false);
    174           HiveLogger.Debug("HiveEngine: Abort - Server: " + response.StatusMessage + " success: " + response.Success);
     174          Logger.Debug("HiveEngine: Abort - Server: " + response.StatusMessage + " success: " + response.Success);
    175175        } else {
    176176          // server sent snapshot request to client
     
    178178          do {
    179179            Thread.Sleep(SNAPSHOT_POLLING_INTERVAL_MS);
    180             HiveLogger.Debug("HiveEngine: Abort - GetLastResult(true)");
     180            Logger.Debug("HiveEngine: Abort - GetLastResult(true)");
    181181            response = executionEngineFacade.GetLastSerializedResult(jobId, true);
    182             HiveLogger.Debug("HiveEngine: Abort - Server: " + response.StatusMessage + " success: " + response.Success);
     182            Logger.Debug("HiveEngine: Abort - Server: " + response.StatusMessage + " success: " + response.Success);
    183183            retryCount++;
    184184            // loop while
     
    194194      SerializedJob jobResult = response.Obj;
    195195      if (jobResult != null) {
    196         HiveLogger.Debug("HiveEngine: Results-polling - Got result!");
     196        Logger.Debug("HiveEngine: Results-polling - Got result!");
    197197        job = (Job)PersistenceManager.RestoreFromGZip(jobResult.SerializedJobData);
    198198        ControlManager.Manager.ShowControl(job.Engine.CreateView());
Note: See TracChangeset for help on using the changeset viewer.