@InterfaceAudience.Private public class PutTracker extends Object
close()
operation.Constructor and Description |
---|
PutTracker(String destKey)
Instantiate.
|
Modifier and Type | Method and Description |
---|---|
boolean |
aboutToComplete(String uploadId,
List<software.amazon.awssdk.services.s3.model.CompletedPart> parts,
long bytesWritten,
org.apache.hadoop.fs.statistics.IOStatistics iostatistics)
Callback when the upload is is about to complete.
|
String |
getDestKey()
get the destination key.
|
boolean |
initialize()
Startup event.
|
boolean |
outputImmediatelyVisible()
Flag to indicate that output is not immediately visible after the stream
is closed.
|
String |
toString() |
public PutTracker(String destKey)
destKey
- destination keypublic boolean initialize() throws IOException
IOException
- any IO problem.public boolean outputImmediatelyVisible()
public boolean aboutToComplete(String uploadId, List<software.amazon.awssdk.services.s3.model.CompletedPart> parts, long bytesWritten, org.apache.hadoop.fs.statistics.IOStatistics iostatistics) throws IOException
uploadId
- Upload IDparts
- list of partsbytesWritten
- bytes writteniostatistics
- nullable IO statisticsIOException
- I/O problem or validation failure.public String getDestKey()
Copyright © 2008–2024 Apache Software Foundation. All rights reserved.