Class OpenBsdOSProcess

All Implemented Interfaces:
OSProcess

public abstract class OpenBsdOSProcess extends BsdOSProcess
  • Field Details

    • PS_KEYWORDS

      public static final List<BsdPsKeyword> PS_KEYWORDS
      Ordered ps columns queried for each process. Shared by the OpenBsdOSProcess subclasses (JNA/FFM) and the OpenBSD OperatingSystem classes so the column list and parsing stay in lockstep. ARGS must remain last.
    • PS_COMMAND_ARGS

      public static final String PS_COMMAND_ARGS
  • Constructor Details

    • OpenBsdOSProcess

      protected OpenBsdOSProcess(int pid)
  • Method Details

    • psKeywords

      protected List<BsdPsKeyword> psKeywords()
      Description copied from class: BsdOSProcess
      Returns this platform's ordered ps column keys, used both to build the ps command and to parse its output positionally.
      Specified by:
      psKeywords in class BsdOSProcess
      Returns:
      the ordered column keys
    • psCommandArgs

      protected String psCommandArgs()
      Description copied from class: BsdOSProcess
      Returns the comma-separated ps -o column list for this platform, derived from BsdOSProcess.psKeywords().
      Specified by:
      psCommandArgs in class BsdOSProcess
      Returns:
      the ps column argument
    • updateThreadCount

      protected void updateThreadCount()
      Description copied from class: BsdOSProcess
      Populates AbstractOSProcess.threadCount for platforms whose ps output lacks an nlwp column. The default is a no-op (the count is taken from the nlwp column); OpenBSD and NetBSD override this with a separate ps query.
      Overrides:
      updateThreadCount in class BsdOSProcess
    • getThreadDetails

      public List<OSThread> getThreadDetails()
      Description copied from interface: OSProcess
      Retrieves the threads of the process and their details.

      The amount of returned information is operating-system dependent and may incur some latency.

      Returns:
      a list of threads