Class DragonFlyBsdOSProcess

java.lang.Object
oshi.software.common.AbstractOSProcess
oshi.software.common.os.unix.bsd.BsdOSProcess
oshi.software.common.os.unix.dragonflybsd.DragonFlyBsdOSProcess
All Implemented Interfaces:
OSProcess

public abstract class DragonFlyBsdOSProcess extends BsdOSProcess
  • Field Details

    • PS_KEYWORDS

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

      public static final String PS_COMMAND_ARGS
  • Constructor Details

    • DragonFlyBsdOSProcess

      protected DragonFlyBsdOSProcess(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
    • queryStartTimeMillis

      protected long queryStartTimeMillis()
      Description copied from class: BsdOSProcess
      Returns this process's start time in epoch milliseconds, or -1 to derive it from the ps elapsed-time column. The default derives from elapsed time; platforms with an absolute source (DragonFly's /proc) override this.
      Overrides:
      queryStartTimeMillis in class BsdOSProcess
      Returns:
      the start time in epoch milliseconds, or -1 to derive from elapsed time
    • 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