Class AbstractProcess

    • Constructor Detail

      • AbstractProcess

        public AbstractProcess​(ISystemCommandGroupList systemCommandGroupList,
                               java.lang.Long pid,
                               java.time.Instant startTime,
                               java.time.Duration totalCpuDuration,
                               java.lang.Integer exitValue)
        Constructor for Process
        Parameters:
        systemCommandGroupList - the system command group list
        pid - the pid
        startTime - the start time
        totalCpuDuration - the total cpu duration
        exitValue - the exist value
    • Method Detail

      • getPid

        public java.lang.Long getPid()
        Description copied from interface: IProcess
        Get the process id
        Specified by:
        getPid in interface IProcess
        Returns:
        the native process id of the process or null if unknown
        See Also:
        IProcess.getPid()
      • getStartTime

        public java.time.Instant getStartTime()
        Description copied from interface: IProcess
        Get the start time of the process.
        Specified by:
        getStartTime in interface IProcess
        Returns:
        the start time of the process
        See Also:
        IProcess.getStartTime()
      • getExitValue

        public java.lang.Integer getExitValue()
        Description copied from interface: IProcess
        Get the exit value for the process.
        Specified by:
        getExitValue in interface IProcess
        Returns:
        the exit value of the process, by convention, the value 0 indicates normal termination. It return null if it has not exit by now.
        See Also:
        IProcess.getExitValue()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
        See Also:
        Object.hashCode()
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
        See Also:
        Object.equals(java.lang.Object)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
        See Also:
        Object.toString()