Package org.apache.storm
Interface StormSubmitter.ProgressListener
- Enclosing class:
- StormSubmitter
public static interface StormSubmitter.ProgressListener
Interface use to track progress of file upload.
- 
Method SummaryModifier 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- 
onStartcalled before file is uploaded.- Parameters:
- srcFile- - jar file to be uploaded
- targetFile- - destination file
- totalBytes- - total number of bytes of the file
 
- 
onProgresscalled whenever a chunk of bytes is uploaded.- Parameters:
- srcFile- - jar file to be uploaded
- targetFile- - destination file
- bytesUploaded- - number of bytes transferred so far
- totalBytes- - total number of bytes of the file
 
- 
onCompletedcalled when the file is uploaded.- Parameters:
- srcFile- - jar file to be uploaded
- targetFile- - destination file
- totalBytes- - total number of bytes of the file
 
 
-