Package com.install4j.api
Class ProcessInfo
- java.lang.Object
-
- com.install4j.api.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.SerializableRepresents a running process on Windows and macOS.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedProcessInfo(int processId, java.lang.String moduleName)Called by implementations.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.lang.StringgetModuleName()Retrieves the full executable path of the process.intgetProcessId()Retrieves the process id.abstract java.lang.StringgetWindowTitle()Get the title of one of the visible top-level windows of this process.inthashCode()java.lang.StringtoString()
-
-
-
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:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-