Class FreeBsdOSProcess

All Implemented Interfaces:
OSProcess

public abstract class FreeBsdOSProcess extends BsdOSProcess
  • Field Details

    • PS_KEYWORDS

      public static final List<BsdPsKeyword> PS_KEYWORDS
      Ordered ps columns queried for each process. Shared by the FreeBsdOSProcess subclasses (JNA/FFM) and the FreeBSD 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

    • FreeBsdOSProcess

      protected FreeBsdOSProcess(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
    • 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