Package org.chenile.scheduler.init
Class SchedulerBuilder
java.lang.Object
org.chenile.scheduler.init.SchedulerBuilder
- All Implemented Interfaces:
DisposableBean
Set up the scheduler for the relevant services if applicable
- Author:
- Raja Shankar Kolluru
-
Field Summary
Modifier and TypeFieldDescriptionprivate ChenileConfiguration
private ChenileEntryPoint
private ChenileExchangeBuilder
static org.slf4j.Logger
private org.quartz.Scheduler
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
build()
void
destroy()
void
scheduleJob
(ChenileServiceDefinition serviceDefinition, OperationDefinition operationDefinition, SchedulerInfo schedulerInfo) void
scheduleJob
(SchedulerInfo schedulerInfo)
-
Field Details
-
logger
public static org.slf4j.Logger logger -
chenileConfiguration
-
quartzScheduler
-
chenileEntryPoint
-
chenileExchangeBuilder
-
-
Constructor Details
-
SchedulerBuilder
public SchedulerBuilder()
-
-
Method Details
-
build
@EventListener(org.springframework.boot.context.event.ApplicationReadyEvent.class) public void build() throws Exception- Throws:
Exception
-
scheduleJob
- Throws:
org.quartz.SchedulerException
-
scheduleJob
public void scheduleJob(ChenileServiceDefinition serviceDefinition, OperationDefinition operationDefinition, SchedulerInfo schedulerInfo) throws org.quartz.SchedulerException - Throws:
org.quartz.SchedulerException
-
destroy
- Specified by:
destroy
in interfaceDisposableBean
- Throws:
Exception
-