Package org.alfresco.heartbeat.jobs
Class NonLockingJobScheduler
java.lang.Object
org.alfresco.heartbeat.jobs.QuartzJobScheduler
org.alfresco.heartbeat.jobs.NonLockingJobScheduler
- All Implemented Interfaces:
HeartBeatJobScheduler
This scheduler is responsible for the scheduling and unscheduling of non locking jobs
NonLockingJob. All repository nodes in a cluster will send data for collectors which have jobs scheduled by this scheduler.- Author:
- eknizat
-
Field Summary
Fields inherited from class org.alfresco.heartbeat.jobs.QuartzJobScheduler
hbDataSenderService, scheduler, testCronExpression, testMode -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Class<? extends org.quartz.Job>Jobs scheduled by the scheduler will use the returned implementation ofJob.protected org.quartz.JobDataMapgetJobDetailMap(HBBaseDataCollector collector) This method is called when a job is being scheduled by this scheduler for the given collector.Methods inherited from class org.alfresco.heartbeat.jobs.QuartzJobScheduler
getJobName, getTriggerName, scheduleJob, setHbDataSenderService, setScheduler, setTestMode, unscheduleJob
-
Constructor Details
-
NonLockingJobScheduler
public NonLockingJobScheduler()
-
-
Method Details
-
getJobDetailMap
Description copied from class:QuartzJobSchedulerThis method is called when a job is being scheduled by this scheduler for the given collector.
The job is scheduled using theJobreturned fromQuartzJobScheduler.getHeartBeatJobClass()and the job map returned from this method, therefor the job map should provide what the job needs to execute.- Specified by:
getJobDetailMapin classQuartzJobScheduler- Parameters:
collector- The collector whose job is being scheduled.- Returns:
- The job map returned from this method will be used to build up
JobDetailfor the job that is being scheduled.
-
getHeartBeatJobClass
Description copied from class:QuartzJobSchedulerJobs scheduled by the scheduler will use the returned implementation ofJob.
The jobs are scheduled together with aJobDataMapreturned fromQuartzJobScheduler.getJobDetailMap(HBBaseDataCollector)
which will be accessible during job execution.- Specified by:
getHeartBeatJobClassin classQuartzJobScheduler- Returns:
Jobimplementation which this scheduler will use to schedule jobs for heartbeat collectors.
-