C# Class Rock.Jobs.RockCleanup

Inheritance: IJob
Afficher le fichier Open project: NewSpring/Rock Class Usage Examples

Méthodes publiques

Méthode Description
Execute ( IJobExecutionContext context ) : void

Job that executes routine Rock cleanup tasks Called by the IScheduler when a ITrigger fires that is associated with the IJob.

RockCleanup ( ) : System

Empty constructor for job initilization

Jobs require a public empty constructor so that the scheduler can instantiate the class whenever it needs.

Private Methods

Méthode Description
CleanCacheDirectory ( string directoryPath, System.DateTime expirationDate ) : void

Cleans expired cached files from the cache folder

CleanCachedFileDirectory ( IJobExecutionContext context, Quartz.JobDataMap dataMap ) : void

Cleans the cached file directory.

CleanUpTemporaryRegistrations ( ) : int

Cleans up temporary registrations.

CleanupExpiredEntitySets ( Quartz.JobDataMap dataMap ) : int

Cleans up expired entity sets.

CleanupPageViews ( Quartz.JobDataMap dataMap ) : int

Cleans up PagesViews for sites that have a Page View retention period

CleanupTemporaryBinaryFiles ( ) : void

Cleanups the temporary binary files.

DeleteDirectory ( string directoryPath, bool isRetryAttempt ) : void

Deletes the specified directory.

DeleteFile ( string filePath, bool isRetryAttempt ) : void

Deletes the specified file.

PersonCleanup ( Quartz.JobDataMap dataMap ) : void

Does cleanup of Person Aliases and Metaphones

PurgeAuditLog ( Quartz.JobDataMap dataMap ) : int

Purges the audit log.

PurgeExceptionLog ( Quartz.JobDataMap dataMap ) : int

Purges the exception log.

Method Details

Execute() public méthode

Job that executes routine Rock cleanup tasks Called by the IScheduler when a ITrigger fires that is associated with the IJob.
public Execute ( IJobExecutionContext context ) : void
context IJobExecutionContext The context.
Résultat void

RockCleanup() public méthode

Empty constructor for job initilization

Jobs require a public empty constructor so that the scheduler can instantiate the class whenever it needs.

public RockCleanup ( ) : System
Résultat System