AzureFileStore Class
- java.
lang. Object - java.
nio. file. FileStore - com.
azure. storage. blob. nio. AzureFileStore
- com.
- java.
public final class AzureFileStore
extends FileStore
An AzureFileStore is a FileStore backed by an Azure Blob Storage container.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| Object |
getAttribute(String s)
Unsupported. |
| V |
getFileStoreAttributeView(Class<V> aClass)
Returns a File |
| long |
getTotalSpace()
Returns the size, in bytes, of the file store. |
| long |
getUnallocatedSpace()
Returns the number of unallocated bytes in the file store. |
| long |
getUsableSpace()
Returns the number of bytes available to this Java virtual machine on the file store. |
| boolean |
isReadOnly()
Always returns false. |
| String |
name()
Returns the name of the container that underlies this file store. |
| boolean |
supportsFileAttributeView(Class<? extends FileAttributeView> type)
Tells whether this file store supports the file attributes identified by the given file attribute view. |
| boolean |
supportsFileAttributeView(String name)
Tells whether this file store supports the file attributes identified by the given file attribute view. |
| String |
type()
Returns the |
Methods inherited from java.lang.Object
Methods inherited from java.nio.file.FileStore
Method Details
getAttribute
public Object getAttribute(String s)
Unsupported.
This method always throws an UnsupportedOperationException as no FileStoreAttributeView is currently supported.
Overrides:
AzureFileStore.getAttribute(String s)Parameters:
Returns:
Throws:
getFileStoreAttributeView
public V <V>getFileStoreAttributeView(Class<V> aClass)
Returns a FileStoreAttributeView of the given type.
This method always returns null as no FileStoreAttributeView is currently supported.
Overrides:
AzureFileStore.getFileStoreAttributeView(Class<V> aClass)Parameters:
Returns:
getTotalSpace
public long getTotalSpace()
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.
Overrides:
AzureFileStore.getTotalSpace()Returns:
Throws:
getUnallocatedSpace
public long getUnallocatedSpace()
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.
Overrides:
AzureFileStore.getUnallocatedSpace()Returns:
Throws:
getUsableSpace
public long getUsableSpace()
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.
Overrides:
AzureFileStore.getUsableSpace()Returns:
Throws:
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.
Overrides:
AzureFileStore.isReadOnly()Returns:
name
public String name()
Returns the name of the container that underlies this file store.
Overrides:
AzureFileStore.name()Returns:
supportsFileAttributeView
public boolean supportsFileAttributeView(Class<? extends FileAttributeView> type)
Tells whether this file store supports the file attributes identified by the given file attribute view.
All file stores in this file system support the following views:
Overrides:
AzureFileStore.supportsFileAttributeView(Class<? extends FileAttributeView> type)Parameters:
Returns:
supportsFileAttributeView
public boolean supportsFileAttributeView(String name)
Tells whether this file store supports the file attributes identified by the given file attribute view.
All file stores in this file system support the following views:
Overrides:
AzureFileStore.supportsFileAttributeView(String name)Parameters:
Returns:
type
public String type()
Returns the String "AzureBlobContainer" to indicate that the file store is backed by a remote blob container in Azure Storage.
Overrides:
AzureFileStore.type()Returns:
"AzureBlobContainer"