public interface S3AInputStreamStatistics extends AutoCloseable, S3AStatisticInterface
S3AInputStream during its use.
It also contains getters for tests.| Modifier and Type | Method and Description |
|---|---|
void |
bytesRead(long bytes)
Increment the bytes read counter by the number of bytes;
no-op if the argument is negative.
|
void |
close() |
long |
getAborted() |
long |
getBackwardSeekOperations() |
long |
getBytesBackwardsOnSeek() |
long |
getBytesDiscardedInAbort() |
long |
getBytesRead()
The bytes read in read() operations.
|
long |
getBytesReadInClose() |
long |
getBytesSkippedOnSeek() |
ChangeTrackerStatistics |
getChangeTrackerStatistics()
Get a reference to the change tracker statistics for this
stream.
|
long |
getClosed() |
long |
getCloseOperations() |
long |
getForwardSeekOperations() |
long |
getInputPolicy() |
long |
getOpenOperations() |
long |
getPolicySetCount() |
long |
getReadExceptions() |
long |
getReadFullyOperations() |
long |
getReadOperations() |
long |
getReadsIncomplete() |
long |
getSeekOperations() |
long |
getTotalBytesRead()
The total number of bytes read, including
all read and discarded when closing streams
or skipped during seek calls.
|
long |
getVersionMismatches() |
org.apache.hadoop.fs.statistics.DurationTracker |
initiateGetRequest()
Initiate a GET request.
|
void |
inputPolicySet(int updatedPolicy)
The input policy has been switched.
|
Long |
lookupCounterValue(String name)
Get the value of a counter.
|
Long |
lookupGaugeValue(String name)
Get the value of a gauge.
|
void |
readException()
An ignored stream read exception was received.
|
void |
readFullyOperationStarted(long pos,
long len)
A
PositionedRead.read(position, buffer, offset, length)
operation has just started. |
void |
readOperationCompleted(int requested,
int actual)
A read operation has completed.
|
void |
readOperationStarted(long pos,
long len)
A
read(byte[] buf, int off, int len) operation has started. |
void |
seekBackwards(long negativeOffset)
Seek backwards, incrementing the seek and backward seek counters.
|
void |
seekForwards(long skipped,
long bytesReadInSeek)
Record a forward seek, adding a seek operation, a forward
seek operation, and any bytes skipped.
|
void |
streamClose(boolean abortedConnection,
long remainingInCurrentRequest)
The inner stream was closed.
|
long |
streamOpened()
The inner stream was opened.
|
void |
unbuffered()
A stream
unbuffer() call has been made. |
void seekBackwards(long negativeOffset)
negativeOffset - how far was the seek?
This is expected to be negative.void seekForwards(long skipped,
long bytesReadInSeek)
skipped - bytes moved forward in streambytesReadInSeek - number of bytes skipped by reading from the stream.
If the seek was implemented by a close + reopen, set this to zero.long streamOpened()
void streamClose(boolean abortedConnection,
long remainingInCurrentRequest)
abortedConnection - flag to indicate the stream was aborted,
rather than closed cleanlyremainingInCurrentRequest - the number of bytes remaining in
the current request.void readException()
void bytesRead(long bytes)
bytes - number of bytes readvoid readOperationStarted(long pos,
long len)
read(byte[] buf, int off, int len) operation has started.pos - starting position of the readlen - length of bytes to readvoid readFullyOperationStarted(long pos,
long len)
PositionedRead.read(position, buffer, offset, length)
operation has just started.pos - starting position of the readlen - length of bytes to readvoid readOperationCompleted(int requested,
int actual)
requested - number of requested bytesactual - the actual number of bytesvoid close()
close in interface AutoCloseablevoid inputPolicySet(int updatedPolicy)
updatedPolicy - enum value of new policy.ChangeTrackerStatistics getChangeTrackerStatistics()
void unbuffered()
unbuffer() call has been made.long getCloseOperations()
long getClosed()
long getAborted()
long getForwardSeekOperations()
long getBackwardSeekOperations()
long getBytesRead()
long getTotalBytesRead()
long getBytesSkippedOnSeek()
long getBytesBackwardsOnSeek()
long getBytesReadInClose()
long getBytesDiscardedInAbort()
long getOpenOperations()
long getSeekOperations()
long getReadExceptions()
long getReadOperations()
long getReadFullyOperations()
long getReadsIncomplete()
long getPolicySetCount()
long getVersionMismatches()
long getInputPolicy()
Long lookupCounterValue(String name)
name - counter nameLong lookupGaugeValue(String name)
name - gauge nameorg.apache.hadoop.fs.statistics.DurationTracker initiateGetRequest()
Copyright © 2008–2022 Apache Software Foundation. All rights reserved.