Class AzureBlobStore

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, BlobStore

    public class AzureBlobStore
    extends java.lang.Object
    implements BlobStore
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getLocationMode

        public LocationMode getLocationMode()
        Gets the configured LocationMode for the Azure storage requests.
      • close

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

        public boolean blobExists​(java.lang.String blob)
                           throws java.net.URISyntaxException,
                                  com.azure.storage.blob.models.BlobStorageException
        Throws:
        java.net.URISyntaxException
        com.azure.storage.blob.models.BlobStorageException
      • deleteBlob

        public void deleteBlob​(java.lang.String blob)
                        throws java.net.URISyntaxException,
                               com.azure.storage.blob.models.BlobStorageException
        Throws:
        java.net.URISyntaxException
        com.azure.storage.blob.models.BlobStorageException
      • deleteBlobDirectory

        public DeleteResult deleteBlobDirectory​(java.lang.String path,
                                                java.util.concurrent.Executor executor)
                                         throws java.net.URISyntaxException,
                                                com.azure.storage.blob.models.BlobStorageException,
                                                java.io.IOException
        Throws:
        java.net.URISyntaxException
        com.azure.storage.blob.models.BlobStorageException
        java.io.IOException
      • getInputStream

        public java.io.InputStream getInputStream​(java.lang.String blob,
                                                  long position,
                                                  @Nullable
                                                  java.lang.Long length)
                                           throws java.net.URISyntaxException,
                                                  com.azure.storage.blob.models.BlobStorageException
        Throws:
        java.net.URISyntaxException
        com.azure.storage.blob.models.BlobStorageException
      • listBlobsByPrefix

        public java.util.Map<java.lang.String,​BlobMetadata> listBlobsByPrefix​(java.lang.String keyPath,
                                                                                    java.lang.String prefix)
                                                                             throws java.net.URISyntaxException,
                                                                                    com.azure.storage.blob.models.BlobStorageException
        Throws:
        java.net.URISyntaxException
        com.azure.storage.blob.models.BlobStorageException
      • children

        public java.util.Map<java.lang.String,​BlobContainer> children​(BlobPath path)
                                                                     throws java.net.URISyntaxException,
                                                                            com.azure.storage.blob.models.BlobStorageException
        Throws:
        java.net.URISyntaxException
        com.azure.storage.blob.models.BlobStorageException
      • writeBlob

        public void writeBlob​(java.lang.String blobName,
                              java.io.InputStream inputStream,
                              long blobSize,
                              boolean failIfAlreadyExists)
                       throws java.net.URISyntaxException,
                              com.azure.storage.blob.models.BlobStorageException,
                              java.io.IOException
        Throws:
        java.net.URISyntaxException
        com.azure.storage.blob.models.BlobStorageException
        java.io.IOException
      • stats

        public java.util.Map<java.lang.String,​java.lang.Long> stats()
        Specified by:
        stats in interface BlobStore