Class ProcessNode

  • All Implemented Interfaces:
    Loggable

    public class ProcessNode
    extends Object
    implements Loggable
    Represents process.
    • Constructor Detail

      • ProcessNode

        public ProcessNode​(long pid,
                           long parentPid,
                           String commandLine)
    • Method Detail

      • getPid

        public long getPid()
        Returns PID of the process.
        Returns:
        PID
      • getParentPid

        public long getParentPid()
        Returns parent process PID
        Returns:
        PPID
      • getCommandLine

        @Nullable
        public String getCommandLine()
        Returns process command line
        Returns:
        process command line or null if command line is not available
      • getShortCommandLine

        @Nullable
        public String getShortCommandLine()
        Returns short process command line or null if command line is not available
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • describe

        @NotNull
        public String describe​(boolean verbose)
        Specified by:
        describe in interface Loggable
        Parameters:
        verbose - verbosity of object description
        Returns:
        description of this object. If verbose is true, description should have mode details.