Package com.lambdatest.tunnel
Class Tunnel
java.lang.Object
com.lambdatest.tunnel.Tunnel
Creates and manages a secure tunnel connection to LambdaTest.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidpassParametersToTunnel(Map<String, String> options) voidrunCommand(String command) Starts Tunnel instance with optionsvoidstop()voidvoidverifyTunnelStarted(Map<String, String> options, int infoAPIPortValue)
-
Constructor Details
-
Tunnel
public Tunnel() throws com.lambdatest.tunnel.TunnelException- Throws:
com.lambdatest.tunnel.TunnelException
-
-
Method Details
-
start
Starts Tunnel instance with options- Parameters:
options- Options for the Tunnel instance
-
verifyTunnelStarted
public void verifyTunnelStarted(Map<String, String> options, int infoAPIPortValue) throws com.lambdatest.tunnel.TunnelException- Throws:
com.lambdatest.tunnel.TunnelException
-
stop
- Throws:
Exception
-
clearTheFile
- Throws:
IOException
-
stopTunnel
public void stopTunnel() throws com.lambdatest.tunnel.TunnelException- Throws:
com.lambdatest.tunnel.TunnelException
-
passParametersToTunnel
-
runCommand
- Throws:
IOException
-