- All Superinterfaces:
OperatingSystemMXBean,OperatingSystemMXBean,OperatingSystemMXBean,PlatformManagedObject,UnixOperatingSystemMXBean
- All Known Implementing Classes:
UnixExtendedOperatingSystem
Interface provides platform-specific management utilities on Unix and Unix-like
operating systems.
- Since:
- 1.8
-
Method Summary
Modifier and TypeMethodDescriptionlongReturns the maximum number of file descriptors that can be opened in a process.longReturns the current number of file descriptors that are in opened state.Methods declared in interface com.ibm.lang.management.OperatingSystemMXBean
getCommittedVirtualMemorySize, getFreeSwapSpaceSize, getHardwareModel, getProcessCpuLoad, getProcessCpuTime, getProcessingCapacity, getProcessPhysicalMemorySize, getProcessPrivateMemorySize, getTotalSwapSpaceSize, isHardwareEmulated, isProcessRunning, retrieveMemoryUsage, retrieveMemoryUsage, retrieveProcessorUsage, retrieveProcessorUsage, retrieveTotalProcessorUsage, retrieveTotalProcessorUsageMethods declared in interface com.sun.management.OperatingSystemMXBean
getCpuLoad, getFreeMemorySize, getFreePhysicalMemorySize, getSystemCpuLoad, getTotalMemorySize, getTotalPhysicalMemorySizeMethods declared in interface java.lang.management.OperatingSystemMXBean
getArch, getAvailableProcessors, getName, getSystemLoadAverage, getVersionMethods declared in interface java.lang.management.PlatformManagedObject
getObjectName
-
Method Details
-
getMaxFileDescriptorCount
long getMaxFileDescriptorCount()Returns the maximum number of file descriptors that can be opened in a process.- Specified by:
getMaxFileDescriptorCountin interfaceUnixOperatingSystemMXBean- Returns:
- The maximum number of file descriptors that can be opened in a process or -1, if an error occurred while obtaining this. If the operating system doesn't have any limits configured, Long.MAX_VALUE is returned.
- Since:
- 1.8
-
getOpenFileDescriptorCount
long getOpenFileDescriptorCount()Returns the current number of file descriptors that are in opened state.- Specified by:
getOpenFileDescriptorCountin interfaceUnixOperatingSystemMXBean- Returns:
- The current number of file descriptors that are in opened state or -1, if an error occurred while obtaining this.
- Since:
- 1.8
-