public interface BlockOutputStreamStatistics extends Closeable, S3AStatisticInterface, PutTrackerStatistics
Modifier and Type | Method and Description |
---|---|
void |
blockAllocated()
A block has been allocated.
|
void |
blockReleased()
A block has been released.
|
void |
blockUploadCompleted(Duration timeSinceUploadStarted,
long blockSize)
A block upload has completed.
|
void |
blockUploadFailed(Duration timeSinceUploadStarted,
long blockSize)
A block upload has failed.
|
void |
blockUploadQueued(long blockSize)
Block is queued for upload.
|
void |
blockUploadStarted(Duration timeInQueue,
long blockSize)
Queued block has been scheduled for upload.
|
void |
bytesTransferred(long byteCount)
Intermediate report of bytes uploaded.
|
void |
commitUploaded(long size)
Data has been uploaded to be committed in a subsequent operation;
to be called at the end of the write.
|
void |
exceptionInMultipartAbort()
Note an exception in a multipart abort.
|
void |
exceptionInMultipartComplete(int count)
Note exception in a multipart complete.
|
int |
getBlocksActivelyAllocated()
Get counters of blocks actively allocated; may be inaccurate
if the numbers change during the (non-synchronized) calculation.
|
int |
getBlocksAllocated() |
int |
getBlocksReleased() |
long |
getBytesPendingUpload()
Get the number of bytes pending upload.
|
long |
getBytesWritten()
Get the current count of bytes written.
|
void |
hflushInvoked()
Syncable.hflush() has been invoked.
|
void |
hsyncInvoked()
Syncable.hsync() has been invoked.
|
Long |
lookupCounterValue(String name)
Get the value of a counter.
|
Long |
lookupGaugeValue(String name)
Get the value of a gauge.
|
void |
writeBytes(long count)
Record bytes written.
|
void blockUploadQueued(long blockSize)
blockSize
- block size.void blockUploadStarted(Duration timeInQueue, long blockSize)
timeInQueue
- time in the queue.blockSize
- block size.void blockUploadCompleted(Duration timeSinceUploadStarted, long blockSize)
timeSinceUploadStarted
- time in since the transfer began.blockSize
- block sizevoid blockUploadFailed(Duration timeSinceUploadStarted, long blockSize)
A final transfer completed event is still expected, so this does not decrement the active block counter.
timeSinceUploadStarted
- time in since the transfer began.blockSize
- block sizevoid bytesTransferred(long byteCount)
byteCount
- bytes uploadedvoid exceptionInMultipartComplete(int count)
count
- count of exceptionsvoid exceptionInMultipartAbort()
long getBytesPendingUpload()
void commitUploaded(long size)
size
- size in bytesint getBlocksAllocated()
int getBlocksReleased()
int getBlocksActivelyAllocated()
void writeBytes(long count)
count
- number of byteslong getBytesWritten()
void blockAllocated()
void blockReleased()
Long lookupCounterValue(String name)
name
- counter nameLong lookupGaugeValue(String name)
name
- gauge namevoid hflushInvoked()
void hsyncInvoked()
Copyright © 2008–2024 Apache Software Foundation. All rights reserved.