public static class ProcessUtil.ProcessMonitor extends Object implements Runnable
| Constructor and Description |
|---|
ProcessMonitor(List<String> processNames)
Creates a new process monitor for a list of processes to be watched.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(ProcessUtil.ProcessListener listener) |
boolean |
allProcessesRunning()
Check if in the last run all Processes were running
|
void |
run()
Checks the processes periodically and notifies listeners.
|
void |
startMonitoring()
Start the monitoring thread
|
void |
stopMonitoring()
Request the thread to stop.
|
public void addListener(ProcessUtil.ProcessListener listener)
public void startMonitoring()
public boolean allProcessesRunning()
public void run()
public void stopMonitoring()
Copyright © 2023 SiLA Java Developers. All rights reserved.