Interface UnixOperatingSystemMXBean

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 Details

    • getMaxFileDescriptorCount

      long getMaxFileDescriptorCount()
      Returns the maximum number of file descriptors that can be opened in a process.
      Specified by:
      getMaxFileDescriptorCount in interface UnixOperatingSystemMXBean
      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 interface UnixOperatingSystemMXBean
      Returns:
      The current number of file descriptors that are in opened state or -1, if an error occurred while obtaining this.
      Since:
      1.8