Class URLBlobStore
java.lang.Object
org.opensearch.common.blobstore.url.URLBlobStore
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,BlobStore
public class URLBlobStore extends java.lang.Object implements BlobStore
Read-only URL-based blob store
-
Constructor Summary
Constructors Constructor Description URLBlobStore(Settings settings, java.net.URL path)Constructs new read-only URL-based blob store -
Method Summary
Modifier and Type Method Description BlobContainerblobContainer(BlobPath path)intbufferSizeInBytes()Returns read buffer sizevoidclose()java.net.URLpath()Returns base URLjava.lang.StringtoString()
-
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
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
path
public java.net.URL 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 interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable
-