public class AbstractJobCallback extends Object implements JobCallback
JobExecutor| Constructor and Description |
|---|
AbstractJobCallback() |
| Modifier and Type | Method and Description |
|---|---|
void |
completed(JobResponse response)
Called when the executor has completed the processing of the job request.
|
void |
created(JobResponse response)
Called when a job has been created.
|
void |
exception(JobResponse response,
Exception e)
Called when an exception has occurred.
|
void |
failed(JobResponse response)
Called when a job has failed.
|
void |
interruption(JobResponse response)
Called when a job is being interrupted or has already been interrupted.
|
void |
processed(JobResponse response)
Called when a job has been processed.
|
void |
running(JobResponse response)
Called when a job has started to run.
|
void |
submitted(JobResponse response)
Called when a job has been submitted.
|
public void created(JobResponse response)
JobCallbackcreated in interface JobCallbackresponse - The job response providing data about the executing job.JobExecutionStatus.CREATEDpublic void submitted(JobResponse response)
JobCallbacksubmitted in interface JobCallbackresponse - The job response providing data about the executing job.JobExecutionStatus.NOT_STARTEDpublic void running(JobResponse response)
JobCallbackrunning in interface JobCallbackresponse - The job response providing data about the executing job.JobExecutionStatus.RUNNINGpublic void processed(JobResponse response)
JobCallbackprocessed in interface JobCallbackresponse - The job response providing data about the executing job.JobExecutionStatus.PROCESSEDpublic void failed(JobResponse response)
JobCallbackfailed in interface JobCallbackresponse - The job response providing data about the executing job.JobExecutionStatus.FAILEDpublic void interruption(JobResponse response)
JobCallbackinterruption in interface JobCallbackresponse - The job response providing data about the executing job.JobExecutionStatus.INTERRUPTING,
JobExecutionStatus.INTERRUPTEDpublic void exception(JobResponse response, Exception e)
JobCallbackexception in interface JobCallbackresponse - The job response providing data about the executing job.e - The raised exception.public void completed(JobResponse response)
JobCallbackcompleted in interface JobCallbackresponse - The job response providing data about the executing job.Copyright © 2015–2017 IBM Corporation. Licensed under the Apache License, Version 2.0.