Module org.elasticsearch.server
Interface RetryingInputStream.BlobStoreServices
- Enclosing class:
RetryingInputStream
protected static interface RetryingInputStream.BlobStoreServices
This implements all the behavior that is blob-store-specific
-
Method Summary
Modifier and TypeMethodDescriptiongetInputStream(long start, long end) Get an input stream for the blob at the given positionintlongvoidonRetryStarted(String action) voidonRetrySucceeded(String action, long numberOfRetries)
-
Method Details
-
getInputStream
RetryingInputStream.SingleAttemptInputStream getInputStream(long start, long end) throws IOException Get an input stream for the blob at the given position- Parameters:
start- The start of the range to read, inclusiveend- The end of the range to read, exclusive, orLong.MAX_VALUE - 1if the end of the blob should be used- Returns:
- An input stream for the given version
- Throws:
IOException- if a retryable error occurs while opening the streamNoSuchFileException- if the blob does not exist, this is not retry-ableRequestedRangeNotSatisfiedException- if the requested range is not valid, this is not retry-able
-
onRetryStarted
-
onRetrySucceeded
-
getMeaningfulProgressSize
long getMeaningfulProgressSize() -
getMaxRetries
int getMaxRetries() -
getBlobDescription
String getBlobDescription()
-