Package org.apache.storm
Interface StormSubmitter.ProgressListener
-
- Enclosing class:
- StormSubmitter
public static interface StormSubmitter.ProgressListener
Interface use to track progress of file upload.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onCompleted(String srcFile, String targetFile, long totalBytes)
called when the file is uploaded.void
onProgress(String srcFile, String targetFile, long bytesUploaded, long totalBytes)
called whenever a chunk of bytes is uploaded.void
onStart(String srcFile, String targetFile, long totalBytes)
called before file is uploaded.
-
-
-
Method Detail
-
onStart
void onStart(String srcFile, String targetFile, long totalBytes)
called before file is uploaded.- Parameters:
srcFile
- - jar file to be uploadedtargetFile
- - destination filetotalBytes
- - total number of bytes of the file
-
onProgress
void onProgress(String srcFile, String targetFile, long bytesUploaded, long totalBytes)
called whenever a chunk of bytes is uploaded.- Parameters:
srcFile
- - jar file to be uploadedtargetFile
- - destination filebytesUploaded
- - number of bytes transferred so fartotalBytes
- - total number of bytes of the file
-
-