Package net.ideahut.springboot.job
Class JobBase
java.lang.Object
net.ideahut.springboot.job.JobBase
- All Implemented Interfaces:
org.quartz.Job
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(org.quartz.JobExecutionContext context) protected org.springframework.context.ApplicationContextgetApplicationContext(org.quartz.JobExecutionContext context) protected <T> TgetConfigValue(org.quartz.JobExecutionContext context, Class<T> type, String name) protected <T> TgetConfigValue(org.quartz.JobExecutionContext context, Class<T> type, String name, T defaultValue) protected net.ideahut.springboot.job.JobTriggerDtogetTrigger(org.quartz.JobExecutionContext context) protected org.slf4j.Loggerlogger()protected DataMappermapper()protected abstract voidrun(org.quartz.JobExecutionContext context)
-
Field Details
-
TRIGGER
- See Also:
-
CONTEXT
- See Also:
-
SERVICE
- See Also:
-
-
Constructor Details
-
JobBase
public JobBase()
-
-
Method Details
-
execute
public void execute(org.quartz.JobExecutionContext context) throws org.quartz.JobExecutionException - Specified by:
executein interfaceorg.quartz.Job- Throws:
org.quartz.JobExecutionException
-
mapper
-
logger
protected org.slf4j.Logger logger() -
getApplicationContext
protected org.springframework.context.ApplicationContext getApplicationContext(org.quartz.JobExecutionContext context) -
getTrigger
protected net.ideahut.springboot.job.JobTriggerDto getTrigger(org.quartz.JobExecutionContext context) -
getConfigValue
-
getConfigValue
-
run
- Throws:
Exception
-