AbfsOutputStreamStatistics, org.apache.hadoop.fs.statistics.IOStatisticsSource, org.apache.hadoop.fs.store.BlockUploadStatisticspublic class AbfsOutputStreamStatisticsImpl extends java.lang.Object implements AbfsOutputStreamStatistics
| Constructor | Description |
|---|---|
AbfsOutputStreamStatisticsImpl() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
blockAllocated() |
Increment the counter to indicate a block has been allocated.
|
void |
blockReleased() |
Increment the counter to indicate a block has been released.
|
void |
bytesToUpload(long bytes) |
Records the need to upload bytes and increments the total bytes that
needs to be uploaded.
|
long |
getBytesToUpload() |
|
long |
getBytesUploadFailed() |
|
long |
getBytesUploadSuccessful() |
|
org.apache.hadoop.fs.statistics.IOStatistics |
getIOStatistics() |
Get the IOStatisticsStore instance from AbfsOutputStreamStatistics.
|
long |
getQueueShrunkOps() |
|
double |
getTimeSpentOnPutRequest() |
Getter for mean value of time taken to complete a PUT request by
AbfsOutputStream.
|
long |
getTimeSpentOnTaskWait() |
|
long |
getWriteCurrentBufferOperations() |
|
void |
queueShrunk() |
Number of times task queue is shrunk.
|
org.apache.hadoop.fs.statistics.DurationTracker |
timeSpentTaskWait() |
Time spent in waiting for tasks to be completed in the blocking queue.
|
java.lang.String |
toString() |
String to show AbfsOutputStream statistics values in AbfsOutputStream.
|
void |
uploadFailed(long bytes) |
Records the total bytes failed to upload through AbfsOutputStream.
|
void |
uploadSuccessful(long bytes) |
Records the total bytes successfully uploaded through AbfsOutputStream.
|
void |
writeCurrentBuffer() |
Number of times buffer is written to the service after a write operation.
|
public void bytesToUpload(long bytes)
bytesToUpload in interface AbfsOutputStreamStatisticsbytes - total bytes to upload. Negative bytes are ignored.public void uploadSuccessful(long bytes)
uploadSuccessful in interface AbfsOutputStreamStatisticsbytes - number of bytes that were successfully uploaded. Negative
bytes are ignored.public void uploadFailed(long bytes)
uploadFailed in interface AbfsOutputStreamStatisticsbytes - number of bytes failed to upload. Negative bytes are ignored.public org.apache.hadoop.fs.statistics.DurationTracker timeSpentTaskWait()
BlockingQueue of size greater than or
equal to 2 times the maxConcurrentRequestCounts then, it waits for a
task in that queue to finish, then do the next task in the queue.
This time spent while waiting for the task to be completed is being
recorded in this counter.timeSpentTaskWait in interface AbfsOutputStreamStatisticspublic void queueShrunk()
queueShrunk in interface AbfsOutputStreamStatisticspublic void writeCurrentBuffer()
writeCurrentBuffer in interface AbfsOutputStreamStatisticspublic void blockAllocated()
blockAllocated in interface org.apache.hadoop.fs.store.BlockUploadStatisticspublic void blockReleased()
blockReleased in interface org.apache.hadoop.fs.store.BlockUploadStatisticspublic org.apache.hadoop.fs.statistics.IOStatistics getIOStatistics()
getIOStatistics in interface AbfsOutputStreamStatisticsgetIOStatistics in interface org.apache.hadoop.fs.statistics.IOStatisticsSource@VisibleForTesting public long getBytesToUpload()
@VisibleForTesting public long getBytesUploadSuccessful()
@VisibleForTesting public long getBytesUploadFailed()
@VisibleForTesting public long getTimeSpentOnTaskWait()
@VisibleForTesting public long getQueueShrunkOps()
@VisibleForTesting public long getWriteCurrentBufferOperations()
@VisibleForTesting public double getTimeSpentOnPutRequest()
public java.lang.String toString()
toString in interface AbfsOutputStreamStatisticstoString in class java.lang.ObjectCopyright © 2008–2025 Apache Software Foundation. All rights reserved.