Constructor and Description |
---|
NullUploader() |
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,
java.lang.String jobID)
Initialize the uploader
|
boolean |
undo()
If subsequent stages fail, undo will be called to free resources used by
uploading package.
|
java.net.URI |
uploadPackage(java.lang.String sourceLocation)
return some useless but valid URI
|
public void initialize(Config config, java.lang.String jobID)
initialize
in interface IUploader
public java.net.URI uploadPackage(java.lang.String sourceLocation) throws UploaderException
uploadPackage
in interface IUploader
sourceLocation
- the source location with all the filesnull
if failed.UploaderException
public boolean undo()
public 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.