Class AzureFileStore


  • public final class AzureFileStore
    extends FileStore
    An AzureFileStore is a FileStore backed by an Azure Blob Storage container.
    • Method Detail

      • name

        public String name()
        Returns the name of the container that underlies this file store.
        Specified by:
        name in class FileStore
        Returns:
        the name of the container that underlies this file store.
      • type

        public String type()
        Returns the String "AzureBlobContainer" to indicate that the file store is backed by a remote blob container in Azure Storage.
        Specified by:
        type in class FileStore
        Returns:
        "AzureBlobContainer"
      • isReadOnly

        public boolean isReadOnly()
        Always returns false.

        It may be the case that the authentication method provided to this file system only supports read operations and hence the file store is implicitly read only in this view, but that does not imply the underlying container/file store is inherently read only. Creating/specifying read only file stores is not currently supported.

        Specified by:
        isReadOnly in class FileStore
        Returns:
        false.
      • getTotalSpace

        public long getTotalSpace()
                           throws IOException
        Returns the size, in bytes, of the file store.

        Containers do not limit the amount of data stored. This method will always return max long.

        Specified by:
        getTotalSpace in class FileStore
        Returns:
        the size of the file store.
        Throws:
        IOException - If an I/O error occurs.
      • getUsableSpace

        public long getUsableSpace()
                            throws IOException
        Returns the number of bytes available to this Java virtual machine on the file store.

        Containers do not limit the amount of data stored. This method will always return max long.

        Specified by:
        getUsableSpace in class FileStore
        Returns:
        the number of bytes available on the file store.
        Throws:
        IOException - If an I/O error occurs.
      • getUnallocatedSpace

        public long getUnallocatedSpace()
                                 throws IOException
        Returns the number of unallocated bytes in the file store.

        Containers do not limit the amount of data stored. This method will always return max long.

        Specified by:
        getUnallocatedSpace in class FileStore
        Returns:
        the number of unallocated bytes in the file store.
        Throws:
        IOException - If an I/O error occurs.