public static class NgrokProcess.ProcessMonitor
extends java.lang.Object
implements java.lang.Runnable
ngrok
thread.Modifier | Constructor and Description |
---|---|
|
ProcessMonitor(java.lang.Process process,
JavaNgrokConfig javaNgrokConfig)
Construct to monitor a {link @Process} monitor.
|
protected |
ProcessMonitor(java.lang.Process process,
JavaNgrokConfig javaNgrokConfig,
HttpClient httpClient)
Construct to monitor a
Process monitor with a custom HttpClient . |
Modifier and Type | Method and Description |
---|---|
java.util.List<NgrokLog> |
getLogs()
Get the
ngrok logs. |
boolean |
isMonitoring()
Get 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(java.lang.Process process, JavaNgrokConfig javaNgrokConfig)
process
- The Process to monitor.javaNgrokConfig
- The config to use when monitoring the Process.protected ProcessMonitor(java.lang.Process process, JavaNgrokConfig javaNgrokConfig, HttpClient httpClient)
Process
monitor with a custom HttpClient
.process
- The Process to monitor.javaNgrokConfig
- The config to use when monitoring the Process.httpClient
- The custom HTTP client.public void run()
run
in interface java.lang.Runnable
public java.util.List<NgrokLog> getLogs()
ngrok
logs.public 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.