Package de.hybris.platform.cronjob.task
Class ExecuteCronJobTaskRunner
- java.lang.Object
-
- de.hybris.platform.cronjob.task.ExecuteCronJobTaskRunner
-
- All Implemented Interfaces:
TaskRunner<TaskModel>
public class ExecuteCronJobTaskRunner extends java.lang.Object implements TaskRunner<TaskModel>
Performs remote execution of a given CronJob as part ofCronJobService.performCronJob(CronJobModel)when that CronJob was actually configured to run on another platform instance ( using node group or node id ).
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringRUNNER_ID
-
Constructor Summary
Constructors Constructor Description ExecuteCronJobTaskRunner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhandleError(TaskService taskService, TaskModel task, java.lang.Throwable error)voidrun(TaskService taskService, TaskModel task)voidsetCronJobService(CronJobService cronJobService)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.hybris.platform.task.TaskRunner
initLoggingCtx, isLoggingSupported, stopLoggingCtx
-
-
-
-
Method Detail
-
run
public void run(TaskService taskService, TaskModel task) throws RetryLaterException
- Specified by:
runin interfaceTaskRunner<TaskModel>- Throws:
RetryLaterException
-
handleError
public void handleError(TaskService taskService, TaskModel task, java.lang.Throwable error)
- Specified by:
handleErrorin interfaceTaskRunner<TaskModel>
-
setCronJobService
public void setCronJobService(CronJobService cronJobService)
-
-