public class ProgressableProgressListener extends Object implements com.amazonaws.event.ProgressListener
| Constructor and Description |
|---|
ProgressableProgressListener(S3AFileSystem fs,
String key,
com.amazonaws.services.s3.transfer.Upload upload,
org.apache.hadoop.util.Progressable progress)
Instantiate.
|
| Modifier and Type | Method and Description |
|---|---|
void |
progressChanged(com.amazonaws.event.ProgressEvent progressEvent) |
long |
uploadCompleted()
Method to invoke after upload has completed.
|
public ProgressableProgressListener(S3AFileSystem fs, String key, com.amazonaws.services.s3.transfer.Upload upload, org.apache.hadoop.util.Progressable progress)
fs - filesystem: will be invoked with statistics updateskey - key for the uploadupload - source of eventsprogress - optional callback for progress.public void progressChanged(com.amazonaws.event.ProgressEvent progressEvent)
progressChanged in interface com.amazonaws.event.ProgressListenerpublic long uploadCompleted()
Copyright © 2008–2022 Apache Software Foundation. All rights reserved.