Class MacFileSystem
java.lang.Object
oshi.software.common.AbstractFileSystem
oshi.software.os.mac.MacFileSystem
- All Implemented Interfaces:
FileSystem
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.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final List<PathMatcher> protected static final List<PathMatcher> protected static final List<PathMatcher> protected static final List<PathMatcher> protected static final Patternprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class AbstractFileSystem
NETWORK_FS_TYPES, PSEUDO_FS_TYPES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFileStores(boolean localOnly) Get file stores on this machine Instantiates a list ofOSFileStoreobjects, representing a storage pool, device, partition, volume, concrete file system or other implementation specific means of file storage.longThe maximum number of open file descriptors.longThe maximum number of open file descriptors per process.longThe current number of open file descriptors.Methods inherited from class AbstractFileSystem
getFileStores
-
Field Details
-
OSHI_MAC_FS_PATH_EXCLUDES
- See Also:
-
OSHI_MAC_FS_PATH_INCLUDES
- See Also:
-
OSHI_MAC_FS_VOLUME_EXCLUDES
- See Also:
-
OSHI_MAC_FS_VOLUME_INCLUDES
- See Also:
-
FS_PATH_EXCLUDES
-
FS_PATH_INCLUDES
-
FS_VOLUME_EXCLUDES
-
FS_VOLUME_INCLUDES
-
LOCAL_DISK
-
MNT_RDONLY
protected static final int MNT_RDONLY- See Also:
-
MNT_SYNCHRONOUS
protected static final int MNT_SYNCHRONOUS- See Also:
-
MNT_NOEXEC
protected static final int MNT_NOEXEC- See Also:
-
MNT_NOSUID
protected static final int MNT_NOSUID- See Also:
-
MNT_NODEV
protected static final int MNT_NODEV- See Also:
-
MNT_UNION
protected static final int MNT_UNION- See Also:
-
MNT_ASYNC
protected static final int MNT_ASYNC- See Also:
-
MNT_CPROTECT
protected static final int MNT_CPROTECT- See Also:
-
MNT_EXPORTED
protected static final int MNT_EXPORTED- See Also:
-
MNT_QUARANTINE
protected static final int MNT_QUARANTINE- See Also:
-
MNT_LOCAL
protected static final int MNT_LOCAL- See Also:
-
MNT_QUOTA
protected static final int MNT_QUOTA- See Also:
-
MNT_ROOTFS
protected static final int MNT_ROOTFS- See Also:
-
MNT_DOVOLFS
protected static final int MNT_DOVOLFS- See Also:
-
MNT_DONTBROWSE
protected static final int MNT_DONTBROWSE- See Also:
-
MNT_IGNORE_OWNERSHIP
protected static final int MNT_IGNORE_OWNERSHIP- See Also:
-
MNT_AUTOMOUNTED
protected static final int MNT_AUTOMOUNTED- See Also:
-
MNT_JOURNALED
protected static final int MNT_JOURNALED- See Also:
-
MNT_NOUSERXATTR
protected static final int MNT_NOUSERXATTR- See Also:
-
MNT_DEFWRITE
protected static final int MNT_DEFWRITE- See Also:
-
MNT_MULTILABEL
protected static final int MNT_MULTILABEL- See Also:
-
MNT_NOATIME
protected static final int MNT_NOATIME- See Also:
-
OPTIONS_MAP
-
-
Constructor Details
-
MacFileSystem
public MacFileSystem()
-
-
Method Details
-
getFileStores
Description copied from interface:FileSystemGet file stores on this machine Instantiates a list ofOSFileStoreobjects, representing a storage pool, device, partition, volume, concrete file system or other implementation specific means of file storage.- Parameters:
localOnly- If true, filters the list to only local file stores. On Windows, also excluded CD-ROM drives.- Returns:
- A list of
OSFileStoreobjects or an empty array if none are present.
-
getOpenFileDescriptors
public long getOpenFileDescriptors()Description copied from interface:FileSystemThe 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.- Returns:
- The number of open file descriptors if available, 0 otherwise.
-
getMaxFileDescriptors
public long getMaxFileDescriptors()Description copied from interface:FileSystemThe 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.- Returns:
- The maximum number of file descriptors if available, 0 otherwise.
-
getMaxFileDescriptorsPerProcess
public long getMaxFileDescriptorsPerProcess()Description copied from interface:FileSystemThe 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.- Returns:
- The maximum number of file descriptors of each process if available, 0 otherwise.
-