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 Object implements OSFileStore
Common implementations for OSFileStore
  • Constructor Details

    • AbstractOSFileStore

      protected AbstractOSFileStore(String name, String volume, String label, String mount, String options, String uuid)
    • AbstractOSFileStore

      protected AbstractOSFileStore()
  • Method Details

    • getName

      public String getName()
      Description copied from interface: OSFileStore
      Name of the File System. A human-readable label that does not necessarily correspond to a file system path.
      Specified by:
      getName in interface OSFileStore
      Returns:
      The file system name
    • getVolume

      public String getVolume()
      Description copied from interface: OSFileStore
      Volume name of the File System. Generally a path representing the device (e.g., /dev/foo which is being mounted.
      Specified by:
      getVolume in interface OSFileStore
      Returns:
      The volume name of the file system
    • getLabel

      public String getLabel()
      Description copied from interface: OSFileStore
      Label of the File System. An optional replacement for the name on Windows and Linux.
      Specified by:
      getLabel in interface OSFileStore
      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 String getMount()
      Description copied from interface: OSFileStore
      Mount point of the File System. The directory users will normally use to interface with the file store.
      Specified by:
      getMount in interface OSFileStore
      Returns:
      The mountpoint of the file system
    • getOptions

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

      public 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 String toString()
      Overrides:
      toString in class Object