public interface IUploader
extends java.lang.AutoCloseable
- job package: including user job file, config files, job definition file, and - twister2 core packages and libraries, if required
Implementation of IUploader is required to have a no argument constructor that will be called to create an instance of IUploader. initialize method must be called after the constructor
Modifier and Type | Method and Description |
---|---|
void |
close()
This is to for disposing or cleaning up any internal state accumulated by the uploader
|
default boolean |
complete()
if uploader is threaded,
this method will wait for the threaded uploading to finish
|
void |
initialize(Config config,
java.lang.String jobID)
Initialize the uploader with the incoming context.
|
boolean |
undo()
Undo uploading.
|
java.net.URI |
uploadPackage(java.lang.String sourceLocation)
UploadPackage will upload the job package to the given location.
|
void initialize(Config config, java.lang.String jobID)
java.net.URI uploadPackage(java.lang.String sourceLocation) throws UploaderException
sourceLocation
- the source location with all the filesnull
if failed.UploaderException
default boolean complete()
boolean undo()
void close()
close
in interface java.lang.AutoCloseable