Class URLBlobStore
java.lang.Object
org.opensearch.common.blobstore.url.URLBlobStore
- All Implemented Interfaces:
Closeable,AutoCloseable,BlobStore
Read-only URL-based blob store
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opensearch.common.blobstore.BlobStore
BlobStore.Metric -
Constructor Summary
ConstructorsConstructorDescriptionURLBlobStore(Settings settings, URL path) Constructs new read-only URL-based blob store -
Method Summary
Modifier and TypeMethodDescriptionblobContainer(BlobPath path) intReturns read buffer sizevoidclose()path()Returns base URLtoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.opensearch.common.blobstore.BlobStore
extendedStats, isBlobMetadataEnabled, reload, stats
-
Constructor Details
-
URLBlobStore
Constructs new read-only URL-based blob storeThe following settings are supported
- buffer_size
- - size of the read buffer, defaults to 100KB
- Parameters:
settings- settingspath- base URL
-
-
Method Details
-
toString
-
path
Returns base URL- Returns:
- base URL
-
bufferSizeInBytes
public int bufferSizeInBytes()Returns read buffer size- Returns:
- read buffer size
-
blobContainer
- Specified by:
blobContainerin interfaceBlobStore
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-