Class AbstractFileSystem

java.lang.Object
oshi.software.common.AbstractFileSystem
All Implemented Interfaces:
FileSystem
Direct Known Subclasses:
AixFileSystem, FreeBsdFileSystem, LinuxFileSystem, MacFileSystem, OpenBsdFileSystem, SolarisFileSystem, WindowsFileSystem

@ThreadSafe
public abstract class AbstractFileSystem
extends java.lang.Object
implements FileSystem
Common methods for filesystem implementations
  • Field Summary

    Fields
    Modifier and Type Field Description
    protected static java.util.List<java.lang.String> NETWORK_FS_TYPES
    FileSystem types which are network-based and should be excluded from local-only lists
    static java.lang.String OSHI_NETWORK_FILESYSTEM_TYPES  
    static java.lang.String OSHI_PSEUDO_FILESYSTEM_TYPES  
    protected static java.util.List<java.lang.String> PSEUDO_FS_TYPES  
  • Constructor Summary

    Constructors
    Constructor Description
    AbstractFileSystem()  
  • Method Summary

    Modifier and Type Method Description
    java.util.List<OSFileStore> getFileStores()
    Get file stores on this machine Instantiates a list of OSFileStore objects, representing a storage pool, device, partition, volume, concrete file system or other implementation specific means of file storage.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface oshi.software.os.FileSystem

    getFileStores, getMaxFileDescriptors, getOpenFileDescriptors
  • Field Details

    • OSHI_NETWORK_FILESYSTEM_TYPES

      public static final java.lang.String OSHI_NETWORK_FILESYSTEM_TYPES
      See Also:
      Constant Field Values
    • OSHI_PSEUDO_FILESYSTEM_TYPES

      public static final java.lang.String OSHI_PSEUDO_FILESYSTEM_TYPES
      See Also:
      Constant Field Values
    • NETWORK_FS_TYPES

      protected static final java.util.List<java.lang.String> NETWORK_FS_TYPES
      FileSystem types which are network-based and should be excluded from local-only lists
    • PSEUDO_FS_TYPES

      protected static final java.util.List<java.lang.String> PSEUDO_FS_TYPES
  • Constructor Details

    • AbstractFileSystem

      public AbstractFileSystem()
  • Method Details

    • getFileStores

      public java.util.List<OSFileStore> getFileStores()
      Description copied from interface: FileSystem
      Get file stores on this machine Instantiates a list of OSFileStore objects, representing a storage pool, device, partition, volume, concrete file system or other implementation specific means of file storage.
      Specified by:
      getFileStores in interface FileSystem
      Returns:
      A list of OSFileStore objects or an empty array if none are present.