Package oshi.software.os.unix.solaris
Class SolarisFileSystem
- java.lang.Object
-
- oshi.software.common.AbstractFileSystem
-
- oshi.software.os.unix.solaris.SolarisFileSystem
-
- All Implemented Interfaces:
FileSystem
@ThreadSafe public class SolarisFileSystem extends AbstractFileSystem
The Solaris File System containsOSFileStores which are a storage pool, device, partition, volume, concrete file system or other implementation specific means of file storage. In Solaris, these are found in the /proc/mount filesystem, excluding temporary and kernel mounts.
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.function.Supplier<Pair<java.lang.Long,java.lang.Long>>FILE_DESCprivate static java.util.List<java.nio.file.PathMatcher>FS_PATH_EXCLUDESprivate static java.util.List<java.nio.file.PathMatcher>FS_PATH_INCLUDESprivate static java.util.List<java.nio.file.PathMatcher>FS_VOLUME_EXCLUDESprivate static java.util.List<java.nio.file.PathMatcher>FS_VOLUME_INCLUDESstatic java.lang.StringOSHI_SOLARIS_FS_PATH_EXCLUDESstatic java.lang.StringOSHI_SOLARIS_FS_PATH_INCLUDESstatic java.lang.StringOSHI_SOLARIS_FS_VOLUME_EXCLUDESstatic java.lang.StringOSHI_SOLARIS_FS_VOLUME_INCLUDES-
Fields inherited from class oshi.software.common.AbstractFileSystem
NETWORK_FS_TYPES, PSEUDO_FS_TYPES
-
-
Constructor Summary
Constructors Constructor Description SolarisFileSystem()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) static java.util.List<OSFileStore>getFileStoreMatching(java.lang.String nameToMatch)private static java.util.List<OSFileStore>getFileStoreMatching(java.lang.String nameToMatch, boolean localOnly)java.util.List<OSFileStore>getFileStores(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.longgetMaxFileDescriptors()The maximum number of open file descriptors.longgetMaxFileDescriptorsPerProcess()The maximum number of open file descriptors per process.longgetOpenFileDescriptors()The current number of open file descriptors.private static Pair<java.lang.Long,java.lang.Long>queryFileDescriptors()-
Methods inherited from class oshi.software.common.AbstractFileSystem
getFileStores
-
-
-
-
Field Detail
-
FILE_DESC
private static final java.util.function.Supplier<Pair<java.lang.Long,java.lang.Long>> FILE_DESC
-
OSHI_SOLARIS_FS_PATH_EXCLUDES
public static final java.lang.String OSHI_SOLARIS_FS_PATH_EXCLUDES
- See Also:
- Constant Field Values
-
OSHI_SOLARIS_FS_PATH_INCLUDES
public static final java.lang.String OSHI_SOLARIS_FS_PATH_INCLUDES
- See Also:
- Constant Field Values
-
OSHI_SOLARIS_FS_VOLUME_EXCLUDES
public static final java.lang.String OSHI_SOLARIS_FS_VOLUME_EXCLUDES
- See Also:
- Constant Field Values
-
OSHI_SOLARIS_FS_VOLUME_INCLUDES
public static final java.lang.String OSHI_SOLARIS_FS_VOLUME_INCLUDES
- See Also:
- Constant Field Values
-
FS_PATH_EXCLUDES
private static final java.util.List<java.nio.file.PathMatcher> FS_PATH_EXCLUDES
-
FS_PATH_INCLUDES
private static final java.util.List<java.nio.file.PathMatcher> FS_PATH_INCLUDES
-
FS_VOLUME_EXCLUDES
private static final java.util.List<java.nio.file.PathMatcher> FS_VOLUME_EXCLUDES
-
FS_VOLUME_INCLUDES
private static final java.util.List<java.nio.file.PathMatcher> FS_VOLUME_INCLUDES
-
-
Method Detail
-
getFileStores
public java.util.List<OSFileStore> getFileStores(boolean localOnly)
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.- Returns:
- A list of
OSFileStoreobjects or an empty array if none are present.
-
getFileStoreMatching
static java.util.List<OSFileStore> getFileStoreMatching(java.lang.String nameToMatch)
-
getFileStoreMatching
private static java.util.List<OSFileStore> getFileStoreMatching(java.lang.String nameToMatch, boolean localOnly)
-
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.
-
queryFileDescriptors
private static Pair<java.lang.Long,java.lang.Long> queryFileDescriptors()
-
-