public class MacProcesses
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
MacProcesses.Info
Class that holds information about running macOS processes.
|
Constructor and Description |
---|
MacProcesses() |
Modifier and Type | Method and Description |
---|---|
static boolean |
areInstalledLaunchersRunning()
Determine if any of the installed launchers are currently running.
|
static MacProcesses.Info[] |
getRunningProcesses()
Get a list of all running processes the installer can see.
|
static boolean |
terminateProcesses(int[] processIds,
boolean force,
int timeout)
Tries to close the processes with the given ids by sending a VM_CLOSE message to all visible top-level windows.
|
public static MacProcesses.Info[] getRunningProcesses()
public static boolean terminateProcesses(int[] processIds, boolean force, int timeout)
processIds
- the processes to terminateforce
- if the process should be killed with kill -9
timeout
- the maximum time to wait for the processes to terminate after the message has been sent in milliseconds.
The minimum time is 400 ms regardless of a lower setting.true
if all processes have been terminated.public static boolean areInstalledLaunchersRunning()