| Modifier and Type | Class and Description |
|---|---|
| pack-priv static enum |
| Modifier and Type | Field and Description |
|---|---|
| private final long | |
| private final UnixMountEntry | |
| private final UnixPath | |
| private static final Object | |
| private static volatile Properties |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv UnixFileStore. | checkIfFeaturePresent(String feature)
Returns status to indicate if file system supports a given feature |
| pack-priv long | |
| private static long | |
| pack-priv UnixMountEntry | |
| public boolean | equals(Object ob)
Overrides java. Indicates whether some other object is "equal to" this one. |
| pack-priv UnixPath | |
| pack-priv abstract UnixMountEntry | |
| public Object | getAttribute(String attribute)
Implements abstract java. Reads the value of a file store attribute. |
| public long | getBlockSize()
Overrides java. Returns the number of bytes per block in this file store. |
| public <V extends FileStoreAttributeView> V | getFileStoreAttributeView(Class<V> view)
Implements abstract java. Returns a |
| public long | getTotalSpace()
Implements abstract java. Returns the size, in bytes, of the file store. |
| public long | getUnallocatedSpace()
Implements abstract java. Returns the number of unallocated bytes in the file store. |
| public long | getUsableSpace()
Implements abstract java. Returns the number of bytes available to this Java virtual machine on the file store. |
| public int | |
| protected boolean | Returns: true if enabled, false if disabled or unable to determineA path pointing to an existing node, such as the file system's root path)Checks whether extended attributes are enabled on the file system where the given file resides. |
| public boolean | isReadOnly()
Implements abstract java. Tells whether this file store is read-only. |
| private static Properties | |
| public String | |
| private UnixFileStoreAttributes | |
| public boolean | supportsFileAttributeView(Class<? extends FileAttributeView> type)
Implements abstract java. Tells whether or not this file store supports the file attributes identified by the given file attribute view. |
| public boolean | supportsFileAttributeView(String name)
Implements abstract java. Tells whether or not this file store supports the file attributes identified by the given file attribute view. |
| public String | |
| public String |
| dev | back to summary |
|---|---|
| private final long dev | |
| entry | back to summary |
|---|---|
| private final UnixMountEntry entry | |
| file | back to summary |
|---|---|
| private final UnixPath file | |
| loadLock | back to summary |
|---|---|
| private static final Object loadLock | |
| props | back to summary |
|---|---|
| private static volatile Properties props | |
| UnixFileStore | back to summary |
|---|---|
| pack-priv UnixFileStore(UnixPath file) throws IOException | |
| UnixFileStore | back to summary |
|---|---|
| pack-priv UnixFileStore(UnixFileSystem fs, UnixMountEntry entry) throws IOException | |
| checkIfFeaturePresent | back to summary |
|---|---|
| pack-priv UnixFileStore. Returns status to indicate if file system supports a given feature | |
| dev | back to summary |
|---|---|
| pack-priv long dev() | |
| devFor | back to summary |
|---|---|
| private static long devFor(UnixPath file) throws IOException | |
| entry | back to summary |
|---|---|
| pack-priv UnixMountEntry entry() | |
| equals | back to summary |
|---|---|
| public boolean equals(Object ob) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| file | back to summary |
|---|---|
| pack-priv UnixPath file() | |
| findMountEntry | back to summary |
|---|---|
| pack-priv abstract UnixMountEntry findMountEntry() throws IOException Find the mount entry for the file store | |
| getAttribute | back to summary |
|---|---|
| public Object getAttribute(String attribute) throws IOException Implements abstract java. Doc from java. Reads the value of a file store attribute. The view-name:attribute-namewhere the character ':' stands for itself.
view-name is the Usage Example: Suppose we want to know if ZFS compression is enabled (assuming the "zfs" view is supported): boolean compression = (Boolean)fs.getAttribute("zfs:compression");
| |
| getBlockSize | back to summary |
|---|---|
| public long getBlockSize() throws IOException Overrides java. Doc from java. Returns the number of bytes per block in this file store. File storage is typically organized into discrete sequences of bytes called blocks. A block is the smallest storage unit of a file store. Every read and write operation is performed on a multiple of blocks.
| |
| getFileStoreAttributeView | back to summary |
|---|---|
| public <V extends FileStoreAttributeView> V getFileStoreAttributeView(Class<V> view) Implements abstract java. Doc from java. Returns a This method is intended to be used where the file store attribute
view defines type-safe methods to read or update the file store attributes.
The
| |
| getTotalSpace | back to summary |
|---|---|
| public long getTotalSpace() throws IOException Implements abstract java. Doc from java. Returns the size, in bytes, of the file store. If the total number of
bytes in the file store is greater than
| |
| getUnallocatedSpace | back to summary |
|---|---|
| public long getUnallocatedSpace() throws IOException Implements abstract java. Doc from java. Returns the number of unallocated bytes in the file store.
If the number of unallocated bytes is greater than
The returned number of unallocated bytes is a hint, but not a guarantee, that it is possible to use most or any of these bytes. The number of unallocated bytes is most likely to be accurate immediately after this method returns. It is likely to be made inaccurate by any external I/O operations including those made on the system outside of this virtual machine.
| |
| getUsableSpace | back to summary |
|---|---|
| public long getUsableSpace() throws IOException Implements abstract java. Doc from java. Returns the number of bytes available to this Java virtual machine on the
file store. If the number of bytes available is greater than
The returned number of available bytes is a hint, but not a guarantee, that it is possible to use most or any of these bytes. The number of usable bytes is most likely to be accurate immediately after this method returns. It is likely to be made inaccurate by any external I/O operations including those made on the system outside of this Java virtual machine.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isExtendedAttributesEnabled | back to summary |
|---|---|
| protected boolean isExtendedAttributesEnabled(UnixPath path) Checks whether extended attributes are enabled on the file system where the given file resides.
| |
| isReadOnly | back to summary |
|---|---|
| public boolean isReadOnly() Implements abstract java. Doc from java. Tells whether this file store is read-only. A file store is read-only if
it does not support write operations or other changes to files. Any
attempt to create a file, open an existing file for writing etc. causes
an
| |
| loadProperties | back to summary |
|---|---|
| private static Properties loadProperties() | |
| name | back to summary |
|---|---|
| public String name() Implements abstract java. Doc from java. Returns the name of this file store. The format of the name is highly implementation specific. It will typically be the name of the storage pool or volume. The string returned by this method may differ from the string
returned by the
| |
| readAttributes | back to summary |
|---|---|
| private UnixFileStoreAttributes readAttributes() throws IOException | |
| supportsFileAttributeView | back to summary |
|---|---|
| public boolean supportsFileAttributeView(Class<? extends FileAttributeView> type) Implements abstract java. Doc from java. Tells whether or not this file store supports the file attributes identified by the given file attribute view. Invoking this method to test if the file store supports
| |
| supportsFileAttributeView | back to summary |
|---|---|
| public boolean supportsFileAttributeView(String name) Implements abstract java. Doc from java. Tells whether or not this file store supports the file attributes identified by the given file attribute view. Invoking this method to test if the file store supports
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
| type | back to summary |
|---|---|
| public String type() Implements abstract java. Doc from java. Returns the type of this file store. The format of the string returned by this method is highly implementation specific. It may indicate, for example, the format used or if the file store is local or remote.
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final UnixFileStore. | |
| public static final UnixFileStore. | |
| public static final UnixFileStore. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static UnixFileStore. | |
| public static UnixFileStore. |
| NOT_PRESENT | back to summary |
|---|---|
| public static final UnixFileStore. | |
| PRESENT | back to summary |
|---|---|
| public static final UnixFileStore. | |
| UNKNOWN | back to summary |
|---|---|
| public static final UnixFileStore. | |
| FeatureStatus | back to summary |
|---|---|
| private FeatureStatus() | |
| valueOf | back to summary |
|---|---|
| public static UnixFileStore. | |
| values | back to summary |
|---|---|
| public static UnixFileStore. | |