public interface JobRequest
JobClientBuilder.build()| Modifier and Type | Field and Description |
|---|---|
static com.ibm.icu.text.DateFormat |
UTC_ISO8601_DATE_FORMAT
Date format that can be specified for the live log.
|
| Modifier and Type | Method and Description |
|---|---|
Future<JobResponse> |
create(JobExecutor executor)
Creates the job as defined in this request.
|
Future<JobResponse> |
execute(JobExecutor executor)
Executes this request by submitting it to a job executor.
|
JobClient |
getClient()
Returns the job client.
|
String |
getCopyJobId()
Returns the job to copy if defined.
|
JobCreationData |
getData()
Returns the job data used to create and initialize the job.
|
List<? extends JobInput> |
getInput()
Returns the list of configured input sources.
|
String |
getJobId()
Returns The job ID once the job has been submitted.
|
OutputStream |
getLivelog()
Returns the live log stream if defined.
|
com.ibm.icu.text.DateFormat |
getLivelogDateFormat()
Returns the live log date format.
|
List<? extends JobLogOutput> |
getLogOutput()
Returns The list of job log output values.
|
List<? extends JobOutput> |
getOutput()
Returns the list of job result output values.
|
String |
getRecreateJobId()
Returns the job to recreate if defined.
|
boolean |
getShallowCopy()
Indicates if a shallow copy was requested.
|
long |
getTimeout()
Returns the job monitoring timeout.
|
boolean |
isDeleteOnCompletion()
Indicates if the job will be deleted upon completion.
|
static final com.ibm.icu.text.DateFormat UTC_ISO8601_DATE_FORMAT
JobClient getClient()
JobCreationData getData()
List<? extends JobInput> getInput()
List<? extends JobOutput> getOutput()
List<? extends JobLogOutput> getLogOutput()
boolean isDeleteOnCompletion()
PROCESSED, FAILED, or INTERRUPTED.long getTimeout()
Future<JobResponse> execute(JobExecutor executor) throws OperationException, IOException, InterruptedException, JobException
executor - The job executor.OperationException - if any other remote exception was raised.IOException - if an I-O exception was raised.InterruptedException - if the job was interrupted.JobException - if the job failed.JobExecutor.execute(JobRequest)Future<JobResponse> create(JobExecutor executor) throws OperationException, IOException, InterruptedException, JobException
executor - The job executor.OperationException - if any other remote exception was raised.IOException - if an I-O exception was raised.InterruptedException - if the job was interrupted.JobException - if the job failed.String getJobId()
null if the request has not yet been submitted.OutputStream getLivelog()
null if not defined.com.ibm.icu.text.DateFormat getLivelogDateFormat()
String getCopyJobId()
null if undefined.boolean getShallowCopy()
true if shallow copy, false otherwisegetCopyJobId()String getRecreateJobId()
null if undefined.Copyright © 2015–2017 IBM Corporation. Licensed under the Apache License, Version 2.0.