Package oshi.software.os.unix.solaris
Class SolarisFileSystem
- java.lang.Object
-
- oshi.software.os.unix.solaris.SolarisFileSystem
-
- All Implemented Interfaces:
java.io.Serializable
,FileSystem
public class SolarisFileSystem extends java.lang.Object implements FileSystem
The Solaris File System containsOSFileStore
s 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.- Author:
- widdis[at]gmail[dot]com
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SolarisFileSystem()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OSFileStore[]
getFileStores()
Gets File System Information.long
getMaxFileDescriptors()
The maximum number of open file descriptors.long
getOpenFileDescriptors()
The current number of open file descriptors.
-
-
-
Method Detail
-
getFileStores
public OSFileStore[] getFileStores()
Gets File System Information.- Specified by:
getFileStores
in interfaceFileSystem
- Returns:
- An array of
OSFileStore
objects representing mounted volumes. May return disconnected volumes withOSFileStore.getTotalSpace()
= 0.
-
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 interfaceFileSystem
- 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 interfaceFileSystem
- Returns:
- The maximum number of file descriptors if available, 0 otherwise.
-
-