-
- All Superinterfaces:
OperatingSystemMXBean
,OperatingSystemMXBean
,OperatingSystemMXBean
,PlatformManagedObject
,UnixOperatingSystemMXBean
- All Known Implementing Classes:
UnixExtendedOperatingSystem
public interface UnixOperatingSystemMXBean extends UnixOperatingSystemMXBean, OperatingSystemMXBean
Interface provides platform-specific management utilities on Unix and Unix-like operating systems.- Since:
- 1.8
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description long
getMaxFileDescriptorCount()
Returns the maximum number of file descriptors that can be opened in a process.long
getOpenFileDescriptorCount()
Returns 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, getProcessCpuTimeByNS, getProcessingCapacity, getProcessPhysicalMemorySize, getProcessPrivateMemorySize, getProcessVirtualMemorySize, getTotalPhysicalMemory, getTotalSwapSpaceSize, isHardwareEmulated, isProcessRunning, retrieveMemoryUsage, retrieveMemoryUsage, retrieveProcessorUsage, retrieveProcessorUsage, retrieveTotalProcessorUsage, retrieveTotalProcessorUsage
-
Methods declared in interface com.sun.management.OperatingSystemMXBean
getFreePhysicalMemorySize, getSystemCpuLoad, getTotalPhysicalMemorySize
-
Methods declared in interface java.lang.management.OperatingSystemMXBean
getArch, getAvailableProcessors, getName, getSystemLoadAverage, getVersion
-
Methods declared in interface java.lang.management.PlatformManagedObject
getObjectName
-
-
-
-
Method Detail
-
getMaxFileDescriptorCount
long getMaxFileDescriptorCount()
Returns the maximum number of file descriptors that can be opened in a process.- Specified by:
getMaxFileDescriptorCount
in 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:
getOpenFileDescriptorCount
in 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
-
-