Class ProcessInfo

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    MacProcesses.Info, WinProcesses.Info

    public abstract class ProcessInfo
    extends java.lang.Object
    implements java.io.Serializable
    Represents a running process on Windows and macOS.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected ProcessInfo​(int processId, java.lang.String moduleName)
      Called by implementations.
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      java.lang.String getModuleName()
      Retrieves the full executable path of the process.
      int getProcessId()
      Retrieves the process id.
      abstract java.lang.String getWindowTitle()
      Get the title of one of the visible top-level windows of this process.
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ProcessInfo

        protected ProcessInfo​(int processId,
                              java.lang.String moduleName)
        Called by implementations.
    • Method Detail

      • getModuleName

        public java.lang.String getModuleName()
        Retrieves the full executable path of the process.
        Returns:
        the executable path
      • getProcessId

        public int getProcessId()
        Retrieves the process id.
        Returns:
        the process id
      • getWindowTitle

        public abstract java.lang.String getWindowTitle()
        Get the title of one of the visible top-level windows of this process.
        Returns:
        the title
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object