public interface IUploader
extends java.lang.AutoCloseable
- topology jar, - topology jar dependencies, - topology definition, and - heron core packages and libraries, if required
Uploader outputs another context containing the necessary information that will be used by next stages of topology submission.
Implementation of IUploader is required to have a no argument constructor that will be called to create an instance of IUploader.
Modifier and Type | Method and Description |
---|---|
void |
close()
This is to for disposing or cleaning up any internal state accumulated by
the uploader
|
void |
initialize(Config config)
Initialize the uploader with the incoming context.
|
boolean |
undo()
If subsequent stages fail, undo will be called to free resources used by
uploading package.
|
java.net.URI |
uploadPackage()
UploadPackage will upload the topology package to the given location.
|
void initialize(Config config)
java.net.URI uploadPackage()
null
if failed.boolean undo()
void close()
Closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect.
close
in interface java.lang.AutoCloseable