public abstract class AbstractLinearExecutionJob extends Object implements ExecutionJob
| Modifier and Type | Field and Description |
|---|---|
protected ExecutionScheduleManager |
executionScheduleManager |
LINEAR_EXECUTION_JOB_GROUP, LINEAR_EXECUTION_TRIGGER_GROUP, NEXT_EXECUTION_JOB_GROUP_KEY, NEXT_EXECUTION_JOB_NAME_KEY, NEXT_EXECUTION_SEPARATION_SECONDS| Constructor and Description |
|---|
AbstractLinearExecutionJob(ExecutionScheduleManager executionScheduleManager) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
doWork(Map<String,Object> properties)
Do the actual work of the fired job.
|
void |
execute(org.quartz.JobExecutionContext context)
Get the next job id from context and create a trigger to fire the next
job.
|
protected abstract void |
finalizeExecution(Map<String,Object> properties) |
protected ExecutionScheduleManager executionScheduleManager
public AbstractLinearExecutionJob(ExecutionScheduleManager executionScheduleManager)
protected abstract void doWork(Map<String,Object> properties) throws org.apache.ambari.server.AmbariException
properties - org.apache.ambari.server.AmbariExceptionprotected abstract void finalizeExecution(Map<String,Object> properties) throws org.apache.ambari.server.AmbariException
org.apache.ambari.server.AmbariExceptionpublic void execute(org.quartz.JobExecutionContext context)
throws org.quartz.JobExecutionException
execute in interface org.quartz.Jobcontext - org.quartz.JobExecutionExceptionCopyright © 2022 Apache Software Foundation. All rights reserved.