public static class MantaJobBuilder.Create extends Object
Modifier and Type | Method and Description |
---|---|
MantaJobBuilder.Create |
addInput(String input)
Add input to job.
|
MantaJobBuilder.Create |
addInputs(Iterable<String> additionalInputs)
Adds multiple inputs to the job.
|
MantaJobBuilder.Create |
addInputs(Stream<String> additionalInputs)
Adds multiple inputs to the job.
|
MantaJobBuilder.Create |
addInputs(String... additionalInputs)
Adds multiple inputs to the job.
|
MantaJobBuilder.Create |
addPhase(MantaJobPhase phase)
Add a single phase to the job.
|
MantaJobBuilder.Create |
addPhases(Iterable<MantaJobPhase> additionalPhases)
Add multiple phases to the job.
|
MantaJobBuilder.Create |
addPhases(MantaJobPhase... additionalPhases)
Add multiple phases to the job.
|
MantaJobBuilder.Create |
addPhases(Stream<MantaJobPhase> additionalPhases)
Add multiple phases to the job.
|
MantaJobBuilder.Run |
run()
Run the created job by invoking the remote Manta API.
|
MantaJobBuilder.Create |
validateInputs()
Validates the inputs already added and throws a
MantaJobException
if any of the inputs are inaccessible. |
public MantaJobBuilder.Create addPhase(MantaJobPhase phase)
phase
- phase to addpublic MantaJobBuilder.Create addPhases(Iterable<MantaJobPhase> additionalPhases)
additionalPhases
- phases to addpublic MantaJobBuilder.Create addPhases(Stream<MantaJobPhase> additionalPhases)
additionalPhases
- phases to addpublic MantaJobBuilder.Create addPhases(MantaJobPhase... additionalPhases)
additionalPhases
- phases to addpublic MantaJobBuilder.Create addInput(String input)
input
- path to Manta object representing the input.public MantaJobBuilder.Create addInputs(Iterable<String> additionalInputs)
additionalInputs
- multiple inputs to addpublic MantaJobBuilder.Create addInputs(Stream<String> additionalInputs)
additionalInputs
- multiple inputs to addpublic MantaJobBuilder.Create addInputs(String... additionalInputs)
additionalInputs
- multiple inputs to addpublic MantaJobBuilder.Create validateInputs()
MantaJobException
if any of the inputs are inaccessible.MantaJobException
- thrown if any of the inputs were invalidpublic MantaJobBuilder.Run run() throws IOException
IOException
- thrown when we are unable to execute the jobCopyright © 2012–2017 Joyent. All rights reserved.