@Internal public class EmbeddedQuartzScheduler extends Object
Scheduler that store all workflow in
memory, it does not have high availability. This scheduler will be embedded in SqlGateway
process to provide service by rest api.
This embedded scheduler is mainly used for testing scenarios and is not suitable for production environment.
| Modifier and Type | Class and Description |
|---|---|
static class |
EmbeddedQuartzScheduler.EmbeddedSchedulerJob
The
Job implementation for embedded quartz scheduler. |
| Constructor and Description |
|---|
EmbeddedQuartzScheduler() |
| Modifier and Type | Method and Description |
|---|---|
org.quartz.JobDetail |
createScheduleWorkflow(WorkflowInfo workflowInfo,
String cronExpression) |
void |
deleteScheduleWorkflow(String workflowName,
String workflowGroup) |
org.quartz.Scheduler |
getQuartzScheduler() |
void |
resumeScheduleWorkflow(String workflowName,
String workflowGroup,
Map<String,String> dynamicOptions)
Resume a quartz schedule job with new dynamic options.
|
void |
start() |
void |
stop() |
void |
suspendScheduleWorkflow(String workflowName,
String workflowGroup) |
public void start()
public void stop()
public org.quartz.JobDetail createScheduleWorkflow(WorkflowInfo workflowInfo, String cronExpression) throws SchedulerException
SchedulerExceptionpublic void suspendScheduleWorkflow(String workflowName, String workflowGroup) throws SchedulerException
SchedulerExceptionpublic void resumeScheduleWorkflow(String workflowName, String workflowGroup, Map<String,String> dynamicOptions) throws SchedulerException
workflowName - The name of the workflow to be resumed.workflowGroup - The group of the workflow to be resumed.dynamicOptions - A map containing the new dynamic options for the workflow. If empty,
the workflow is simply resumed.SchedulerException - if the workflow does not exist or if there is an error resuming
the workflow.public void deleteScheduleWorkflow(String workflowName, String workflowGroup) throws SchedulerException
SchedulerException@VisibleForTesting public org.quartz.Scheduler getQuartzScheduler()
Copyright © 2014–2025 The Apache Software Foundation. All rights reserved.