Class SecurityLogJob
java.lang.Object
de.bytestore.hostinger.security.jobs.log.SecurityLogJob
- All Implemented Interfaces:
org.quartz.Job
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(org.quartz.JobExecutionContext jobExecutionContext) Executes the security log job.
-
Constructor Details
-
SecurityLogJob
public SecurityLogJob()
-
-
Method Details
-
execute
public void execute(org.quartz.JobExecutionContext jobExecutionContext) throws org.quartz.JobExecutionException Executes the security log job.This method is called when the security log job is triggered by the scheduler. It performs the following steps:
- Authenticates the system user by calling the
SystemAuthenticator#withSystem(Runnable)method. - Purges old logs from the security log database by calling the
SecurityService.purgeOldLogs(Integer)method.
This method does not return any value.
- Specified by:
executein interfaceorg.quartz.Job- Parameters:
jobExecutionContext- the execution context of the job- Throws:
org.quartz.JobExecutionException- if an error occurs during the execution of the job
- Authenticates the system user by calling the
-