@InterfaceAudience.Private @InterfaceStability.Unstable public final class S3AInstrumentation.OutputStreamStatistics extends Object implements Closeable
| Constructor and Description |
|---|
OutputStreamStatistics(org.apache.hadoop.fs.FileSystem.Statistics statistics) |
| Modifier and Type | Method and Description |
|---|---|
int |
blocksActivelyAllocated()
Get counters of blocks actively allocated; my be inaccurate
if the numbers change during the (non-synchronized) calculation.
|
int |
blocksAllocated() |
int |
blocksReleased() |
void |
close()
Output stream has closed.
|
void |
commitUploaded(long size)
Data has been uploaded to be committed in a subsequent operation;
to be called at the end of the write.
|
long |
getBytesPendingUpload()
Get the number of bytes pending upload.
|
String |
toString() |
public OutputStreamStatistics(org.apache.hadoop.fs.FileSystem.Statistics statistics)
public long getBytesPendingUpload()
public void commitUploaded(long size)
size - size in bytespublic void close()
close in interface Closeableclose in interface AutoCloseablepublic int blocksAllocated()
public int blocksReleased()
public int blocksActivelyAllocated()
Copyright © 2008–2021 Apache Software Foundation. All rights reserved.