public interface JobExecutor
JobExecutorBuilder,
JobExecutorFactory| Modifier and Type | Method and Description |
|---|---|
Future<JobResponse> |
create(JobRequest request,
JobCallback callback)
Creates a job request but does not submit the job.
|
Future<JobResponse> |
execute(JobRequest request)
Executes a job request.
|
Future<JobResponse> |
execute(JobRequest request,
JobCallback callback)
Executes a job request and calls a callback at major steps of the
execution.
|
Future<JobResponse> |
monitor(JobRequest request,
String jobid,
JobCallback callback)
Monitor a job request that was submitted.
|
void |
shutdown()
Stops the execution of the executor and releases all used resources.
|
Future<JobResponse> |
submit(JobRequest request,
JobCallback callback)
Submits a job request but does not monitor the execution nor process the outputs and logs.
|
void shutdown()
Future<JobResponse> execute(JobRequest request) throws OperationException, IOException, InterruptedException, JobException
request - The request.OperationException - if any other remote exception was raised.IOException - if an I-O exception was raised.InterruptedException - if the operation was interrupted.JobException - if the job failed for any reason.Future<JobResponse> execute(JobRequest request, JobCallback callback) throws OperationException, IOException, InterruptedException, JobException
request - The request.callback - The call back.OperationException - if any other remote exception was raised.IOException - if an I-O exception was raised.InterruptedException - if the operation was interrupted.JobException - if the job failed for any reason.Future<JobResponse> create(JobRequest request, JobCallback callback) throws OperationException, IOException, InterruptedException, JobException
request - The request.callback - The call back.OperationException - if any other remote exception was raised.IOException - if an I-O exception was raised.InterruptedException - if the operation was interrupted.JobException - if the job failed for any reason.monitor(JobRequest, String, JobCallback)Future<JobResponse> submit(JobRequest request, JobCallback callback) throws OperationException, IOException, InterruptedException, JobException
request - The request.callback - The call back.OperationException - if any other remote exception was raised.IOException - if an I-O exception was raised.InterruptedException - if the operation was interrupted.JobException - if the job failed for any reason.monitor(JobRequest, String, JobCallback)Future<JobResponse> monitor(JobRequest request, String jobid, JobCallback callback) throws OperationException, IOException, InterruptedException, JobException
request - The request.jobid - The ID of the job to monitor.callback - The call back or null if not defined.OperationException - if any other remote exception was raised.IOException - if an I-O exception was raised.InterruptedException - if the operation was interrupted.JobException - if the job failed for any reason.submit(JobRequest, JobCallback)Copyright © 2015–2017 IBM Corporation. Licensed under the Apache License, Version 2.0.