public static class NgrokProcess.ProcessMonitor
extends java.lang.Object
implements java.lang.Runnable
ngrok process.| Constructor and Description |
|---|
ProcessMonitor(NgrokProcess ngrokProcess,
JavaNgrokConfig javaNgrokConfig)
Construct to monitor a {link @Process} monitor.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<NgrokLog> |
getLogs()
Deprecated.
Use
NgrokProcess.getLogs() instead. |
boolean |
isMonitoring()
Whether the thread is continuing to monitor
ngrok logs. |
void |
run() |
void |
stop()
Set the monitor thread to stop monitoring the ngrok process after the next log event.
|
public ProcessMonitor(NgrokProcess ngrokProcess, JavaNgrokConfig javaNgrokConfig)
ngrokProcess - The Process to monitor.javaNgrokConfig - The config to use when monitoring the Process.public void run()
run in interface java.lang.Runnablepublic boolean isMonitoring()
ngrok logs.public void stop()
This has no impact on the ngrok process itself, only java-ngrok's monitor of the process and
its logs.
@Deprecated public java.util.List<NgrokLog> getLogs()
NgrokProcess.getLogs() instead.ngrok logs.