/// <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);
        }
コード例 #2
0
        /// <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));
        }
コード例 #3
0
 /// <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));
 }
コード例 #5
0
 /// <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));
 }
コード例 #6
0
 /// <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));
 }