- java.lang.Object
-
- com.github.alexdlaird.ngrok.conf.JavaNgrokConfig
-
public class JavaNgrokConfig extends java.lang.ObjectAn object for managingjava-ngrok's configuration to interact thengrokbinary.For usage examples, see
java-ngrok's documentation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJavaNgrokConfig.BuilderBuilder for aJavaNgrokConfig, see docs for that class for example usage.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetApiKey()AngrokAPI key.java.lang.StringgetAuthToken()Get thengrokauthtoken that will be passed to commands.java.nio.file.PathgetConfigPath()Get the path to thengrokconfig file.ConfigVersiongetConfigVersion()Thengrokconfig version.java.util.function.Function<NgrokLog,java.lang.Void>getLogEventCallback()Get the log event callback that will be invoked each timengrokemits a log.intgetMaxLogs()Get the maximum number ofngroklogs to retain in the monitoring thread.java.nio.file.PathgetNgrokPath()Get the path to thengrokbinary.NgrokVersiongetNgrokVersion()Get the majorngrokversion to be used.RegiongetRegion()Get the region in whichngrokwill start.intgetStartupTimeout()Get the max timeout, in seconds, to wait forngrokto start.booleanisKeepMonitoring()Whether thengrokprocess will continue to be monitored after it finishes starting up.
-
-
-
Method Detail
-
getNgrokVersion
public NgrokVersion getNgrokVersion()
Get the majorngrokversion to be used.
-
getMaxLogs
public int getMaxLogs()
Get the maximum number ofngroklogs to retain in the monitoring thread.
-
getStartupTimeout
public int getStartupTimeout()
Get the max timeout, in seconds, to wait forngrokto start.
-
isKeepMonitoring
public boolean isKeepMonitoring()
Whether thengrokprocess will continue to be monitored after it finishes starting up.
-
getNgrokPath
public java.nio.file.Path getNgrokPath()
Get the path to thengrokbinary.
-
getConfigPath
public java.nio.file.Path getConfigPath()
Get the path to thengrokconfig file.
-
getAuthToken
public java.lang.String getAuthToken()
Get thengrokauthtoken that will be passed to commands.
-
getRegion
public Region getRegion()
Get the region in whichngrokwill start.
-
getLogEventCallback
public java.util.function.Function<NgrokLog,java.lang.Void> getLogEventCallback()
Get the log event callback that will be invoked each timengrokemits a log.
-
getApiKey
public java.lang.String getApiKey()
AngrokAPI key.
-
getConfigVersion
public ConfigVersion getConfigVersion()
Thengrokconfig version.
-
-