Class URLBlobStore
- java.lang.Object
-
- org.opensearch.common.blobstore.url.URLBlobStore
-
-
Constructor Summary
Constructors Constructor Description URLBlobStore(Settings settings, java.net.URL path)Constructs new read-only URL-based blob store
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BlobContainerblobContainer(BlobPath path)intbufferSizeInBytes()Returns read buffer sizevoidclose()java.net.URLpath()Returns base URLjava.lang.StringtoString()
-
-
-
Constructor Detail
-
URLBlobStore
public URLBlobStore(Settings settings, java.net.URL path)
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 Detail
-
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
public BlobContainer blobContainer(BlobPath path)
- Specified by:
blobContainerin interfaceBlobStore
-
close
public void close()
- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable
-
-