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
    BlobContainer blobContainer​(BlobPath path)  
    int bufferSizeInBytes()
    Returns read buffer size
    void close()  
    java.net.URL path()
    Returns base URL
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.opensearch.common.blobstore.BlobStore

    stats
  • Constructor Details

    • URLBlobStore

      public URLBlobStore​(Settings settings, java.net.URL path)
      Constructs new read-only URL-based blob store

      The following settings are supported

      buffer_size
      - size of the read buffer, defaults to 100KB
      Parameters:
      settings - settings
      path - base URL
  • Method Details

    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.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:
      blobContainer in interface BlobStore
    • close

      public void close()
      Specified by:
      close in interface java.lang.AutoCloseable
      Specified by:
      close in interface java.io.Closeable