Class AixProcessState

java.lang.Object
oshi.software.common.os.unix.aix.AixProcessState

public final class AixProcessState extends Object
Maps AIX pr_sname characters (from psinfo_t / lwpsinfo_t) to OSHI's OSProcess.State enum. Shared between AixOSProcess and AixOSThread so both the JNA and FFM backends classify states identically.
  • Method Details

    • getStateFromOutput

      public static OSProcess.State getStateFromOutput(char stateValue)
      Returns the OSProcess.State corresponding to the pr_sname character from an AIX psinfo_t/lwpsinfo_t structure.
      Parameters:
      stateValue - pr_sname character ('O', 'R', 'A', 'I', …)
      Returns:
      the matching OSProcess.State