Package oshi.software.os.unix.freebsd
Class FreeBsdFileSystem
java.lang.Object
oshi.software.common.AbstractFileSystem
oshi.software.os.unix.freebsd.FreeBsdFileSystem
- All Implemented Interfaces:
FileSystem
@ThreadSafe public final class FreeBsdFileSystem extends AbstractFileSystem
The FreeBSD File System contains
OSFileStore
s which
are a storage pool, device, partition, volume, concrete file system or other
implementation specific means of file storage.-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
OSHI_FREEBSD_FS_PATH_EXCLUDES
static java.lang.String
OSHI_FREEBSD_FS_PATH_INCLUDES
static java.lang.String
OSHI_FREEBSD_FS_VOLUME_EXCLUDES
static java.lang.String
OSHI_FREEBSD_FS_VOLUME_INCLUDES
Fields inherited from class oshi.software.common.AbstractFileSystem
NETWORK_FS_TYPES, OSHI_NETWORK_FILESYSTEM_TYPES, OSHI_PSEUDO_FILESYSTEM_TYPES, PSEUDO_FS_TYPES
-
Constructor Summary
Constructors Constructor Description FreeBsdFileSystem()
-
Method Summary
Modifier and Type Method Description java.util.List<OSFileStore>
getFileStores(boolean localOnly)
Get file stores on this machine Instantiates a list ofOSFileStore
objects, representing a storage pool, device, partition, volume, concrete file system or other implementation specific means of file storage.long
getMaxFileDescriptors()
The maximum number of open file descriptors.long
getOpenFileDescriptors()
The current number of open file descriptors.Methods inherited from class oshi.software.common.AbstractFileSystem
getFileStores
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
OSHI_FREEBSD_FS_PATH_EXCLUDES
public static final java.lang.String OSHI_FREEBSD_FS_PATH_EXCLUDES- See Also:
- Constant Field Values
-
OSHI_FREEBSD_FS_PATH_INCLUDES
public static final java.lang.String OSHI_FREEBSD_FS_PATH_INCLUDES- See Also:
- Constant Field Values
-
OSHI_FREEBSD_FS_VOLUME_EXCLUDES
public static final java.lang.String OSHI_FREEBSD_FS_VOLUME_EXCLUDES- See Also:
- Constant Field Values
-
OSHI_FREEBSD_FS_VOLUME_INCLUDES
public static final java.lang.String OSHI_FREEBSD_FS_VOLUME_INCLUDES- See Also:
- Constant Field Values
-
-
Constructor Details
-
FreeBsdFileSystem
public FreeBsdFileSystem()
-
-
Method Details
-
getFileStores
Description copied from interface:FileSystem
Get file stores on this machine Instantiates a list ofOSFileStore
objects, 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.- 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.- 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.- Returns:
- The maximum number of file descriptors if available, 0 otherwise.
-