Modifier and Type | Method and Description |
---|---|
Object |
getAttribute(String s)
Unsupported.
|
<V extends FileStoreAttributeView> |
getFileStoreAttributeView(Class<V> aClass)
Returns a FileStoreAttributeView of the given type.
|
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 or not this file store supports the file attributes identified by the given file attribute view.
|
boolean |
supportsFileAttributeView(String name)
Tells whether or not this file store supports the file attributes identified by the given file attribute view.
|
String |
type()
Returns the
String "AzureBlobContainer" to indicate that the file store is backed by a remote blob
container in Azure Storage. |
getBlockSize
public String name()
public String type()
String "AzureBlobContainer"
to indicate that the file store is backed by a remote blob
container in Azure Storage.public boolean isReadOnly()
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.
isReadOnly
in class FileStore
public long getTotalSpace() throws IOException
Containers do not limit the amount of data stored. This method will always return max long.
getTotalSpace
in class FileStore
IOException
- If an I/O error occurs.public long getUsableSpace() throws IOException
Containers do not limit the amount of data stored. This method will always return max long.
getUsableSpace
in class FileStore
IOException
- If an I/O error occurs.public long getUnallocatedSpace() throws IOException
Containers do not limit the amount of data stored. This method will always return max long.
getUnallocatedSpace
in class FileStore
IOException
- If an I/O error occurs.public boolean supportsFileAttributeView(Class<? extends FileAttributeView> type)
All file stores in this file system support the following views:
supportsFileAttributeView
in class FileStore
type
- the file attribute view typepublic boolean supportsFileAttributeView(String name)
All file stores in this file system support the following views:
supportsFileAttributeView
in class FileStore
name
- the name of the file attribute viewpublic <V extends FileStoreAttributeView> V getFileStoreAttributeView(Class<V> aClass)
This method always returns null as no FileStoreAttributeView
is currently supported.
getFileStoreAttributeView
in class FileStore
aClass
- a classpublic Object getAttribute(String s) throws IOException
This method always throws an UnsupportedOperationException
as no FileStoreAttributeView
is
currently supported.
getAttribute
in class FileStore
s
- a stringUnsupportedOperationException
- unsupportedIOException
- neverCopyright © 2021 Microsoft Corporation. All rights reserved.