public interface JobInput
upload function that you can define.| Modifier and Type | Method and Description |
|---|---|
long |
getLength()
Returns the length of the input source or -1 if unknown.
|
String |
getName()
Returns the name of the input source.
|
boolean |
isRepeatable()
Indicates if the upload can be repeated.
|
void |
upload(JobClient client,
String jobid)
Uploads this source as the contents of an attachment to a given job.
|
String getName()
long getLength()
boolean isRepeatable()
true if the content can be repeated for retry.void upload(JobClient client, String jobid) throws OperationException, IOException, JobNotFoundException, AttachmentNotFoundException, SubscriptionException
client - The job client.jobid - The job ID.OperationException - if any other remote exception was raised.IOException - if an I-O exception was raised.AttachmentNotFoundException - if the attachment was not declared or not found.JobNotFoundException - if the job is not found with the given id.SubscriptionException - if there is not a valid subscription for this job.Copyright © 2015–2017 IBM Corporation. Licensed under the Apache License, Version 2.0.