com.atlassian.scheduler.compat.clustered
Class ClusteredJobRunner
java.lang.Object
com.atlassian.scheduler.compat.clustered.ClusteredJobRunner
- All Implemented Interfaces:
- JobRunner
public class ClusteredJobRunner
- extends Object
- implements JobRunner
- Since:
- v1.0
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClusteredJobRunner
public ClusteredJobRunner(JobHandler delegate)
runJob
public JobRunnerResponse runJob(JobRunnerRequest request)
- Description copied from interface:
JobRunner
- Called by the
SchedulerService when it is time for a job to run.
The job is expected to perform its own error handling by catching exceptions
as appropriate and reporting an informative message using
JobRunnerResponse.failed(String).
- Specified by:
runJob in interface JobRunner
- Parameters:
request - the information about the request that was supplied by the scheduler service
- Returns:
- a
JobRunnerResponse providing additional detail about the result of running the job.
The response is permitted to be null, which is treated as identical to
JobRunnerResponse.success().
Copyright © 2014 Atlassian. All Rights Reserved.