Class MacFileSystemFFM

All Implemented Interfaces:
FileSystem

@ThreadSafe public class MacFileSystemFFM extends MacFileSystem
The Mac File System contains OSFileStores which are a storage pool, device, partition, volume, concrete file system or other implementation specific means of file storage. In macOS, these are found in the /Volumes directory.
  • Constructor Details

    • MacFileSystemFFM

      public MacFileSystemFFM()
  • Method Details

    • getFileStores

      public List<OSFileStore> getFileStores(boolean localOnly)
      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
      Overrides:
      getFileStores in class MacFileSystem
      Parameters:
      localOnly - If true, filters the list to only local file stores. On Windows, also excluded CD-ROM drives.
      Returns:
      A list of OSFileStore objects or an empty array if none are present.
    • getOpenFileDescriptors

      public long getOpenFileDescriptors()
      Description copied from interface: FileSystem
      The current number of open file descriptors. A file descriptor is an abstract handle used to access I/O resources such as files and network connections. On UNIX-based systems there is a system-wide limit on the number of open file descriptors. On Windows systems, this method returns the total number of handles held by Processes. While Windows handles are conceptually similar to file descriptors, they may also refer to a number of non-I/O related objects.
      Specified by:
      getOpenFileDescriptors in interface FileSystem
      Overrides:
      getOpenFileDescriptors in class MacFileSystem
      Returns:
      The number of open file descriptors if available, 0 otherwise.
    • getMaxFileDescriptors

      public long getMaxFileDescriptors()
      Description copied from interface: FileSystem
      The maximum number of open file descriptors. A file descriptor is an abstract handle used to access I/O resources such as files and network connections. On UNIX-based systems there is a system-wide limit on the number of open file descriptors. On Windows systems, this method returns the theoretical max number of handles (2^24-2^15 on 32-bit, 2^24-2^16 on 64-bit). There may be a lower per-process limit. While Windows handles are conceptually similar to file descriptors, they may also refer to a number of non-I/O related objects.
      Specified by:
      getMaxFileDescriptors in interface FileSystem
      Overrides:
      getMaxFileDescriptors in class MacFileSystem
      Returns:
      The maximum number of file descriptors if available, 0 otherwise.
    • getMaxFileDescriptorsPerProcess

      public long getMaxFileDescriptorsPerProcess()
      Description copied from interface: FileSystem
      The maximum number of open file descriptors per process. This returns the upper limit which applies to each process. The actual limit of a process may be lower if configured.
      Specified by:
      getMaxFileDescriptorsPerProcess in interface FileSystem
      Overrides:
      getMaxFileDescriptorsPerProcess in class MacFileSystem
      Returns:
      The maximum number of file descriptors of each process if available, 0 otherwise.