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.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()
-
-
-
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 classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-