@IocBean
@DisallowConcurrentExecution
public class WirelessCallerServiceJob implements Job {
@Inject
protected Dao dao;
private static final Log log = Logs.get();
private static int runtimes=1;
private List<WindowNoWaitingCount> wnwcList=new ArrayList<WindowNoWaitingCount>();
public WirelessCallerServiceJob() {
wnwcList.add(new WindowNoWaitingCount(1,20));
}
@Override
public synchronized void execute(JobExecutionContext context) throws JobExecutionException {
System.out.println("运行第 " + runtimes++ + " 次");
}
运行第 8 次
[INFO ] 2018-11-01 17:38:04,975 org.quartz.plugins.history.LoggingJobHistoryPlugin.jobWasExecuted(LoggingJobHistoryPlugin.java:513) - Job 7ff48d654af74a91bdaee10d437d56bd.7ff48d654af74a91bdaee10d437d56bd execution complete at 17:38:04 11/01/2018 and reports: null
[DEBUG] 2018-11-01 17:38:04,978 org.quartz.impl.jdbcjobstore.DBSemaphore.obtainLock(DBSemaphore.java:107) - Lock 'TRIGGER_ACCESS' is desired by: defaultScheduler_Worker-1
[DEBUG] 2018-11-01 17:38:04,979 org.quartz.impl.jdbcjobstore.StdRowLockSemaphore.executeSQL(StdRowLockSemaphore.java:92) - Lock 'TRIGGER_ACCESS' is being obtained: defaultScheduler_Worker-1
[DEBUG] 2018-11-01 17:38:04,983 org.quartz.impl.jdbcjobstore.DBSemaphore.obtainLock(DBSemaphore.java:116) - Lock 'TRIGGER_ACCESS' given to: defaultScheduler_Worker-1
[DEBUG] 2018-11-01 17:38:05,034 org.quartz.impl.jdbcjobstore.DBSemaphore.releaseLock(DBSemaphore.java:141) - Lock 'TRIGGER_ACCESS' returned by: defaultScheduler_Worker-1
[DEBUG] 2018-11-01 17:38:05,114 org.quartz.impl.jdbcjobstore.DBSemaphore.obtainLock(DBSemaphore.java:107) - Lock 'TRIGGER_ACCESS' is desired by: defaultScheduler_QuartzSchedulerThread
[DEBUG] 2018-11-01 17:38:05,115 org.quartz.impl.jdbcjobstore.StdRowLockSemaphore.executeSQL(StdRowLockSemaphore.java:92) - Lock 'TRIGGER_ACCESS' is being obtained: defaultScheduler_QuartzSchedulerThread
[DEBUG] 2018-11-01 17:38:05,118 org.quartz.impl.jdbcjobstore.DBSemaphore.obtainLock(DBSemaphore.java:116) - Lock 'TRIGGER_ACCESS' given to: defaultScheduler_QuartzSchedulerThread
[DEBUG] 2018-11-01 17:38:05,186 org.quartz.impl.jdbcjobstore.DBSemaphore.releaseLock(DBSemaphore.java:141) - Lock 'TRIGGER_ACCESS' returned by: defaultScheduler_QuartzSchedulerThread
[DEBUG] 2018-11-01 17:38:05,213 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:157) - Get 'wirelessCallerServiceJob'<class com.java.onlineqs.base.job.WirelessCallerServiceJob>
[INFO ] 2018-11-01 17:38:05,214 org.quartz.plugins.history.LoggingJobHistoryPlugin.jobToBeExecuted(LoggingJobHistoryPlugin.java:469) - Job 7ff48d654af74a91bdaee10d437d56bd.7ff48d654af74a91bdaee10d437d56bd fired (by trigger 7ff48d654af74a91bdaee10d437d56bd.7ff48d654af74a91bdaee10d437d56bd) at: 17:38:05 11/01/2018
[DEBUG] 2018-11-01 17:38:05,214 org.quartz.core.JobRunShell.run(JobRunShell.java:201) - Calling execute on job 7ff48d654af74a91bdaee10d437d56bd.7ff48d654af74a91bdaee10d437d56bd
运行第 9 次
[INFO ] 2018-11-01 17:38:05,413 org.quartz.plugins.history.LoggingJobHistoryPlugin.jobWasExecuted(LoggingJobHistoryPlugin.java:513) - Job 7ff48d654af74a91bdaee10d437d56bd.7ff48d654af74a91bdaee10d437d56bd execution complete at 17:38:05 11/01/2018 and reports: null
[DEBUG] 2018-11-01 17:38:05,426 org.quartz.impl.jdbcjobstore.DBSemaphore.obtainLock(DBSemaphore.java:107) - Lock 'TRIGGER_ACCESS' is desired by: defaultScheduler_Worker-1
[DEBUG] 2018-11-01 17:38:05,426 org.quartz.impl.jdbcjobstore.StdRowLockSemaphore.executeSQL(StdRowLockSemaphore.java:92) - Lock 'TRIGGER_ACCESS' is being obtained: defaultScheduler_Worker-1
[DEBUG] 2018-11-01 17:38:05,430 org.quartz.impl.jdbcjobstore.DBSemaphore.obtainLock(DBSemaphore.java:116) - Lock 'TRIGGER_ACCESS' given to: defaultScheduler_Worker-1
[DEBUG] 2018-11-01 17:38:05,441 org.quartz.impl.jdbcjobstore.DBSemaphore.releaseLock(DBSemaphore.java:141) - Lock 'TRIGGER_ACCESS' returned by: defaultScheduler_Worker-1
[DEBUG] 2018-11-01 17:38:06,033 org.quartz.impl.jdbcjobstore.DBSemaphore.obtainLock(DBSemaphore.java:107) - Lock 'TRIGGER_ACCESS' is desired by: defaultScheduler_QuartzSchedulerThread
[DEBUG] 2018-11-01 17:38:06,034 org.quartz.impl.jdbcjobstore.StdRowLockSemaphore.executeSQL(StdRowLockSemaphore.java:92) - Lock 'TRIGGER_ACCESS' is being obtained: defaultScheduler_QuartzSchedulerThread
[DEBUG] 2018-11-01 17:38:06,041 org.quartz.impl.jdbcjobstore.DBSemaphore.obtainLock(DBSemaphore.java:116) - Lock 'TRIGGER_ACCESS' given to: defaultScheduler_QuartzSchedulerThread
[DEBUG] 2018-11-01 17:38:06,046 org.quartz.impl.jdbcjobstore.DBSemaphore.releaseLock(DBSemaphore.java:141) - Lock 'TRIGGER_ACCESS' returned by: defaultScheduler_QuartzSchedulerThread
[DEBUG] 2018-11-01 17:38:06,079 org.quartz.impl.jdbcjobstore.DBSemaphore.obtainLock(DBSemaphore.java:107) - Lock 'TRIGGER_ACCESS' is desired by: defaultScheduler_QuartzSchedulerThread
[DEBUG] 2018-11-01 17:38:06,080 org.quartz.impl.jdbcjobstore.StdRowLockSemaphore.executeSQL(StdRowLockSemaphore.java:92) - Lock 'TRIGGER_ACCESS' is being obtained: defaultScheduler_QuartzSchedulerThread
[DEBUG] 2018-11-01 17:38:06,082 org.quartz.impl.jdbcjobstore.DBSemaphore.obtainLock(DBSemaphore.java:116) - Lock 'TRIGGER_ACCESS' given to: defaultScheduler_QuartzSchedulerThread
[DEBUG] 2018-11-01 17:38:06,199 org.quartz.impl.jdbcjobstore.DBSemaphore.releaseLock(DBSemaphore.java:141) - Lock 'TRIGGER_ACCESS' returned by: defaultScheduler_QuartzSchedulerThread
[WARN ] 2018-11-01 17:38:08,516 org.quartz.impl.jdbcjobstore.JobStoreSupport.findFailedInstances(JobStoreSupport.java:3350) - This scheduler instance (QCZ1WNAZTCWWQZ81541065068286) is still active but was recovered by another instance in the cluster. This may cause inconsistent behavior.
[DEBUG] 2018-11-01 17:38:08,557 org.quartz.impl.jdbcjobstore.JobStoreSupport$ClusterManager.manage(JobStoreSupport.java:3877) - ClusterManager: Check-in complete.
[WARN ] 2018-11-01 17:38:28,522 org.quartz.impl.jdbcjobstore.JobStoreSupport.findFailedInstances(JobStoreSupport.java:3350) - This scheduler instance (QCZ1WNAZTCWWQZ81541065068286) is still active but was recovered by another instance in the cluster. This may cause inconsistent behavior.
[DEBUG] 2018-11-01 17:38:28,569 org.quartz.impl.jdbcjobstore.JobStoreSupport$ClusterManager.manage(JobStoreSupport.java:3877) - ClusterManager: Check-in complete.
[WARN ] 2018-11-01 17:38:48,531 org.quartz.impl.jdbcjobstore.JobStoreSupport.findFailedInstances(JobStoreSupport.java:3350) - This scheduler instance (QCZ1WNAZTCWWQZ81541065068286) is still active but was recovered by another instance in the cluster. This may cause inconsistent behavior.
[DEBUG] 2018-11-01 17:38:48,595 org.quartz.impl.jdbcjobstore.JobStoreSupport$ClusterManager.manage(JobStoreSupport.java:3877) - ClusterManager: Check-in complete.
[WARN ] 2018-11-01 17:39:08,538 org.quartz.impl.jdbcjobstore.JobStoreSupport.findFailedInstances(JobStoreSupport.java:3350) - This scheduler instance (QCZ1WNAZTCWWQZ81541065068286) is still active but was recovered by another instance in the cluster. This may cause inconsistent behavior.
[DEBUG] 2018-11-01 17:39:08,626 org.quartz.impl.jdbcjobstore.JobStoreSupport$ClusterManager.manage(JobStoreSupport.java:3877) - ClusterManager: Check-in complete.
[WARN ] 2018-11-01 17:39:28,551 org.quartz.impl.jdbcjobstore.JobStoreSupport.findFailedInstances(JobStoreSupport.java:3350) - This scheduler instance (QCZ1WNAZTCWWQZ81541065068286) is still active but was recovered by another instance in the cluster. This may cause inconsistent behavior.
[DEBUG] 2018-11-01 17:39:28,635 org.quartz.impl.jdbcjobstore.JobStoreSupport$ClusterManager.manage(JobStoreSupport.java:3877) - ClusterManager: Check-in complete.
[WARN ] 2018-11-01 17:39:48,580 org.quartz.impl.jdbcjobstore.JobStoreSupport.findFailedInstances(JobStoreSupport.java:3350) - This scheduler instance (QCZ1WNAZTCWWQZ81541065068286) is still active but was recovered by another instance in the cluster. This may cause inconsistent behavior.
[DEBUG] 2018-11-01 17:39:48,590 org.quartz.impl.jdbcjobstore.JobStoreSupport$MisfireHandler.manage(JobStoreSupport.java:3949) - MisfireHandler: scanning for misfires...
[DEBUG] 2018-11-01 17:39:48,599 org.quartz.impl.jdbcjobstore.JobStoreSupport.doRecoverMisfires(JobStoreSupport.java:3198) - Found 0 triggers that missed their scheduled fire-time.
[DEBUG] 2018-11-01 17:39:48,674 org.quartz.impl.jdbcjobstore.JobStoreSupport$ClusterManager.manage(JobStoreSupport.java:3877) - ClusterManager: Check-in complete.
[WARN ] 2018-11-01 17:40:08,590 org.quartz.impl.jdbcjobstore.JobStoreSupport.findFailedInstances(JobStoreSupport.java:3350) - This scheduler instance (QCZ1WNAZTCWWQZ81541065068286) is still active but was recovered by another instance in the cluster. This may cause inconsistent behavior.
[DEBUG] 2018-11-01 17:40:08,641 org.quartz.impl.jdbcjobstore.JobStoreSupport$ClusterManager.manage(JobStoreSupport.java:3877) - ClusterManager: Check-in complete.
[WARN ] 2018-11-01 17:40:28,602 org.quartz.impl.jdbcjobstore.JobStoreSupport.findFailedInstances(JobStoreSupport.java:3350) - This scheduler instance (QCZ1WNAZTCWWQZ81541065068286) is still active but was recovered by another instance in the cluster. This may cause inconsistent behavior.
[DEBUG] 2018-11-01 17:40:28,720 org.quartz.impl.jdbcjobstore.JobStoreSupport$ClusterManager.manage(JobStoreSupport.java:3877) - ClusterManager: Check-in complete.
[WARN ] 2018-11-01 17:40:48,613 org.quartz.impl.jdbcjobstore.JobStoreSupport.findFailedInstances(JobStoreSupport.java:3350) - This scheduler instance (QCZ1WNAZTCWWQZ81541065068286) is still active but was recovered by another instance in the cluster. This may cause inconsistent behavior.
[DEBUG] 2018-11-01 17:40:48,681 org.quartz.impl.jdbcjobstore.JobStoreSupport$ClusterManager.manage(JobStoreSupport.java:3877) - ClusterManager: Check-in complete.