Package oshi.software.os.unix.openbsd
Class OpenBsdOSFileStore
- java.lang.Object
-
- oshi.software.common.AbstractOSFileStore
-
- oshi.software.os.unix.openbsd.OpenBsdOSFileStore
-
- All Implemented Interfaces:
OSFileStore
@ThreadSafe public class OpenBsdOSFileStore extends AbstractOSFileStore
OSFileStore implementation
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
description
private long
freeInodes
private long
freeSpace
private java.lang.String
fsType
private java.lang.String
logicalVolume
private long
totalInodes
private long
totalSpace
private long
usableSpace
-
Constructor Summary
Constructors Constructor Description OpenBsdOSFileStore(java.lang.String name, java.lang.String volume, java.lang.String label, java.lang.String mount, java.lang.String options, java.lang.String uuid, java.lang.String logicalVolume, java.lang.String description, java.lang.String fsType, long freeSpace, long usableSpace, long totalSpace, long freeInodes, long totalInodes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getDescription()
Description of the File System.long
getFreeInodes()
Usable / free inodes on the drive.long
getFreeSpace()
Free space on the drive.java.lang.String
getLogicalVolume()
Logical volume of the File System.long
getTotalInodes()
Total / maximum number of inodes of the filesystem.long
getTotalSpace()
Total space/capacity of the drive.java.lang.String
getType()
Type of the File System (FAT, NTFS, etx2, ext4, etc.)long
getUsableSpace()
Usable space on the drive.boolean
updateAttributes()
Make a best effort to update all the statistics about the file store without needing to recreate the file store list.-
Methods inherited from class oshi.software.common.AbstractOSFileStore
getLabel, getMount, getName, getOptions, getUUID, getVolume, toString
-
-
-
-
Field Detail
-
logicalVolume
private java.lang.String logicalVolume
-
description
private java.lang.String description
-
fsType
private java.lang.String fsType
-
freeSpace
private long freeSpace
-
usableSpace
private long usableSpace
-
totalSpace
private long totalSpace
-
freeInodes
private long freeInodes
-
totalInodes
private long totalInodes
-
-
Constructor Detail
-
OpenBsdOSFileStore
public OpenBsdOSFileStore(java.lang.String name, java.lang.String volume, java.lang.String label, java.lang.String mount, java.lang.String options, java.lang.String uuid, java.lang.String logicalVolume, java.lang.String description, java.lang.String fsType, long freeSpace, long usableSpace, long totalSpace, long freeInodes, long totalInodes)
-
-
Method Detail
-
getLogicalVolume
public java.lang.String getLogicalVolume()
Description copied from interface:OSFileStore
Logical volume of the File System. Provides an optional alternative volume identifier for the file system. Only supported on Linux, provides symlink value via '/dev/mapper/' (used with LVM file systems).- Returns:
- The logical volume of the file system
-
getDescription
public java.lang.String getDescription()
Description copied from interface:OSFileStore
Description of the File System.- Returns:
- The file system description
-
getType
public java.lang.String getType()
Description copied from interface:OSFileStore
Type of the File System (FAT, NTFS, etx2, ext4, etc.)- Returns:
- The file system type
-
getFreeSpace
public long getFreeSpace()
Description copied from interface:OSFileStore
Free space on the drive. This space is unallocated but may require elevated permissions to write.- Returns:
- Free space on the drive (in bytes)
-
getUsableSpace
public long getUsableSpace()
Description copied from interface:OSFileStore
Usable space on the drive. This is space available to unprivileged users.- Returns:
- Usable space on the drive (in bytes)
-
getTotalSpace
public long getTotalSpace()
Description copied from interface:OSFileStore
Total space/capacity of the drive.- Returns:
- Total capacity of the drive (in bytes)
-
getFreeInodes
public long getFreeInodes()
Description copied from interface:OSFileStore
Usable / free inodes on the drive. Not applicable on Windows.- Returns:
- Usable / free inodes on the drive (count), or -1 if unimplemented
-
getTotalInodes
public long getTotalInodes()
Description copied from interface:OSFileStore
Total / maximum number of inodes of the filesystem. Not applicable on Windows.- Returns:
- Total / maximum number of inodes of the filesystem (count), or -1 if unimplemented
-
updateAttributes
public boolean updateAttributes()
Description copied from interface:OSFileStore
Make a best effort to update all the statistics about the file store without needing to recreate the file store list. This method provides for more frequent periodic updates of file store statistics.- Returns:
- True if the update was (probably) successful, false if the disk was not found
-
-