Package oshi.software.common
Class AbstractOSFileStore
java.lang.Object
oshi.software.common.AbstractOSFileStore
- All Implemented Interfaces:
OSFileStore
- Direct Known Subclasses:
AixOSFileStore,FreeBsdOSFileStore,LinuxOSFileStore,MacOSFileStore,OpenBsdOSFileStore,SolarisOSFileStore,WindowsOSFileStore
@ThreadSafe public abstract class AbstractOSFileStore extends java.lang.Object implements OSFileStore
Common implementations for OSFileStore
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractOSFileStore()protectedAbstractOSFileStore(java.lang.String name, java.lang.String volume, java.lang.String label, java.lang.String mount, java.lang.String options, java.lang.String uuid) -
Method Summary
Modifier and Type Method Description java.lang.StringgetLabel()Label of the File Systemjava.lang.StringgetMount()Mountpoint of the File Systemjava.lang.StringgetName()Name of the File Systemjava.lang.StringgetOptions()Filesystem optionsjava.lang.StringgetUUID()UUID/GUID of the File Systemjava.lang.StringgetVolume()Volume name of the File Systemjava.lang.StringtoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface oshi.software.os.OSFileStore
getDescription, getFreeInodes, getFreeSpace, getLogicalVolume, getTotalInodes, getTotalSpace, getType, getUsableSpace, updateAttributes
-
Constructor Details
-
AbstractOSFileStore
protected AbstractOSFileStore(java.lang.String name, java.lang.String volume, java.lang.String label, java.lang.String mount, java.lang.String options, java.lang.String uuid) -
AbstractOSFileStore
protected AbstractOSFileStore()
-
-
Method Details
-
getName
public java.lang.String getName()Description copied from interface:OSFileStoreName of the File System- Specified by:
getNamein interfaceOSFileStore- Returns:
- The file system name
-
getVolume
public java.lang.String getVolume()Description copied from interface:OSFileStoreVolume name of the File System- Specified by:
getVolumein interfaceOSFileStore- Returns:
- The volume name of the file system
-
getLabel
public java.lang.String getLabel()Description copied from interface:OSFileStoreLabel of the File System- Specified by:
getLabelin interfaceOSFileStore- Returns:
- The volume label of the file system. Only relevant on Windows and on Linux, if assigned; otherwise defaults to the FileSystem name. On other operating systems is redundant with the name.
-
getMount
public java.lang.String getMount()Description copied from interface:OSFileStoreMountpoint of the File System- Specified by:
getMountin interfaceOSFileStore- Returns:
- The mountpoint of the file system
-
getOptions
public java.lang.String getOptions()Description copied from interface:OSFileStoreFilesystem options- Specified by:
getOptionsin interfaceOSFileStore- Returns:
- A comma-deimited string of options
-
getUUID
public java.lang.String getUUID()Description copied from interface:OSFileStoreUUID/GUID of the File System- Specified by:
getUUIDin interfaceOSFileStore- Returns:
- The file system UUID/GUID
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-