Package com.easydesk.web.scheduler
Class HeartbeatJob
java.lang.Object
org.springframework.scheduling.quartz.QuartzJobBean
com.easydesk.web.scheduler.EasyDeskJob
com.easydesk.web.scheduler.HeartbeatJob
- All Implemented Interfaces:
org.quartz.Job
Scheduler 동작 확인용 sample job.
Quartz worker thread 에서 (1) system 사용자 context 가 바인딩되어 있는지, (2) Torque(DB) 를 쓸 수 있는지를
로그 한 줄로 보여준다. app.scheduler.heartbeat.enabled=false 로 끌 수 있다 (QuartzJobConfig).
-
Field Summary
Fields inherited from class com.easydesk.web.scheduler.EasyDeskJob
logger, TRIGGERED_BY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidexecuteJob(org.quartz.JobExecutionContext context) 실제 job 내용. system 사용자 context(SecurityContextHolder / RequestContextHolder / TransactionContextHolder)가 바인딩된 상태에서 호출된다.Methods inherited from class com.easydesk.web.scheduler.EasyDeskJob
executeInternal, setJobContextBinderMethods inherited from class org.springframework.scheduling.quartz.QuartzJobBean
execute
-
Constructor Details
-
HeartbeatJob
public HeartbeatJob()
-
-
Method Details
-
executeJob
Description copied from class:EasyDeskJob실제 job 내용. system 사용자 context(SecurityContextHolder / RequestContextHolder / TransactionContextHolder)가 바인딩된 상태에서 호출된다.- Specified by:
executeJobin classEasyDeskJob- Parameters:
context- Quartz job 실행 정보 (JobDataMap, fireTime 등)- Throws:
Exception- 실패 시. Quartz 에는 JobExecutionException 으로 전달된다.
-