Constructor and Description |
---|
HdfsUploader() |
Modifier and Type | Method and Description |
---|---|
void |
close()
This is to for disposing or cleaning up any internal state accumulated by
the uploader
|
protected HdfsController |
getHdfsController() |
void |
initialize(Config ipconfig)
Initialize the uploader with the incoming context.
|
protected boolean |
isLocalFileExists(java.lang.String file) |
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.
|
public void initialize(Config ipconfig)
IUploader
initialize
in interface IUploader
protected HdfsController getHdfsController()
protected boolean isLocalFileExists(java.lang.String file)
public java.net.URI uploadPackage()
IUploader
uploadPackage
in interface IUploader
null
if failed.public boolean undo()
IUploader
public void close()
IUploader
Closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect.