Class AbstractOSFileStore

java.lang.Object
oshi.software.common.AbstractOSFileStore
All Implemented Interfaces:
OSFileStore
Direct Known Subclasses:
AixOSFileStore, FreeBsdOSFileStore, LinuxOSFileStore, MacOSFileStore, SolarisOSFileStore, WindowsOSFileStore

@ThreadSafe
public abstract class AbstractOSFileStore
extends java.lang.Object
implements OSFileStore
  • 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: OSFileStore
      Name of the File System
      Specified by:
      getName in interface OSFileStore
      Returns:
      The file system name
    • getVolume

      public java.lang.String getVolume()
      Description copied from interface: OSFileStore
      Volume name of the File System
      Specified by:
      getVolume in interface OSFileStore
      Returns:
      The volume name of the file system
    • getLabel

      public java.lang.String getLabel()
      Description copied from interface: OSFileStore
      Label of the File System
      Specified by:
      getLabel in interface OSFileStore
      Returns:
      The volume label of the file system, on Windows. Other operating systems is redundant with the name.
    • getMount

      public java.lang.String getMount()
      Description copied from interface: OSFileStore
      Mountpoint of the File System
      Specified by:
      getMount in interface OSFileStore
      Returns:
      The mountpoint of the file system
    • getOptions

      public java.lang.String getOptions()
      Description copied from interface: OSFileStore
      Filesystem options
      Specified by:
      getOptions in interface OSFileStore
      Returns:
      A comma-deimited string of options
    • getUUID

      public java.lang.String getUUID()
      Description copied from interface: OSFileStore
      UUID/GUID of the File System
      Specified by:
      getUUID in interface OSFileStore
      Returns:
      The file system UUID/GUID
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object