Package org.alfresco.heartbeat.jobs
Class NonLockingJobScheduler
- java.lang.Object
-
- org.alfresco.heartbeat.jobs.QuartzJobScheduler
-
- org.alfresco.heartbeat.jobs.NonLockingJobScheduler
-
- All Implemented Interfaces:
HeartBeatJobScheduler
public class NonLockingJobScheduler extends QuartzJobScheduler
This scheduler is responsible for the scheduling and unscheduling of non locking jobsNonLockingJob. 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 Constructor Description NonLockingJobScheduler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.Class<? extends org.quartz.Job>getHeartBeatJobClass()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
-
-
-
-
Method Detail
-
getJobDetailMap
protected org.quartz.JobDataMap getJobDetailMap(HBBaseDataCollector collector)
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
protected java.lang.Class<? extends org.quartz.Job> 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.
-
-