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
Modifier and TypeMethodDescriptionvoidonCompleted(String srcFile, String targetFile, long totalBytes) called when the file is uploaded.voidonProgress(String srcFile, String targetFile, long bytesUploaded, long totalBytes) called whenever a chunk of bytes is uploaded.voidcalled before file is uploaded.
-
Method Details
-
onStart
called before file is uploaded.- Parameters:
srcFile- - jar file to be uploadedtargetFile- - destination filetotalBytes- - total number of bytes of the file
-
onProgress
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
-
onCompleted
called when the file is uploaded.- Parameters:
srcFile- - jar file to be uploadedtargetFile- - destination filetotalBytes- - total number of bytes of the file
-