/// <summary> /// Run the logic. /// </summary> /// <param name="job">The job.</param> protected override void RunnerLogic(Job job) { Assert.ArgumentNotNull(job, "job"); string backupResult = AnalyticsDatabaseService.BackupDatabase(this.pathTo); this.WriteDiagnosticInfo(job, "New backup was created at " + backupResult); }
/// <summary> /// Run the logic of CleanAll task. /// </summary> /// <param name="job">The job.</param> protected override void RunnerLogic(Job job) { Assert.ArgumentNotNull(job, "job"); int ipOwnersRemoved; job.Status.Processed = AnalyticsDatabaseService.CleanAllCollectedData(this.cleanIps, out ipOwnersRemoved); this.WriteDiagnosticInfo(job, string.Format("Entries removed: {0}\r\nLocations removed: {1}\r\nThe data from helper tables have been removed as well.", job.Status.Processed, ipOwnersRemoved)); }
/// <summary> /// Runs the logic. /// </summary> /// <param name="job">The job.</param> protected override void RunnerLogic(Sitecore.Jobs.Job job) { Assert.ArgumentNotNull(job, "job"); job.Status.Processed = AnalyticsDatabaseService.RebuildIndex(this.onlineMode); this.WriteDiagnosticInfo(job, "Rebuild index is completed."); }
/// <summary> /// Run the logic of CleanFiltered task. /// </summary> /// <param name="job">The job.</param> protected override void RunnerLogic(Job job) { Assert.ArgumentNotNull(job, "job"); job.Status.Processed = AnalyticsDatabaseService.CleanCollectedDataOlderThen(this.dateTime); this.WriteDiagnosticInfo(job, string.Format("Visits removed: {0}", job.Status.Processed)); }
/// <summary> /// Run the logic. /// </summary> /// <param name="job">The job.</param> protected override void RunnerLogic(Sitecore.Jobs.Job job) { Assert.ArgumentNotNull(job, "job"); job.Status.Processed = AnalyticsDatabaseService.CleanBounceSessions(); this.WriteDiagnosticInfo(job, string.Format("Visits removed: {0}", job.Status.Processed)); }
/// <summary> /// Runs the logic. /// </summary> /// <param name="job">The job.</param> protected override void RunnerLogic(Job job) { Assert.ArgumentNotNull(job, "job"); job.Status.Processed = AnalyticsDatabaseService.CleanCustomRule(this.tableColumn, this.tableColumnValue); this.WriteDiagnosticInfo(job, string.Format("Visits removed: {0}", job.Status.Processed)); }