Module org.elasticsearch.server
Interface RetryingInputStream.BlobStoreServices<V>
- Type Parameters:
V- The type of the version used
- Enclosing class:
RetryingInputStream<V>
protected static interface RetryingInputStream.BlobStoreServices<V>
This implements all the behavior that is blob-store-specific
-
Method Summary
Modifier and TypeMethodDescriptiongetInputStream(V version, long start, long end) Get an input stream for the given versionintlongbooleanvoidvoidonRetrySucceeded(RetryingInputStream.StreamAction action, long numberOfRetries)
-
Method Details
-
getInputStream
RetryingInputStream.SingleAttemptInputStream<V> getInputStream(@Nullable V version, long start, long end) throws IOException Get an input stream for the given version- Parameters:
version- The version to request, or null if the latest version should be usedstart- 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() -
isRetryableException
-