Package com.browserstack.local
Class Local
java.lang.Object
com.browserstack.local.Local
Creates and manages a secure tunnel connection to BrowserStack.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks if Local instance is runningprotected Local.LocalProcessrunCommand(List<String> command) Executes the supplied command on the shell.voidStarts Local instance with optionsvoidstop()Stops the Local instancevoidStops the Local instance specified by the given identifier
-
Constructor Details
-
Local
public Local()
-
-
Method Details
-
start
Starts Local instance with options- Parameters:
options- Options for the Local instance- Throws:
Exception
-
stop
Stops the Local instance- Throws:
InterruptedExceptionException
-
stop
Stops the Local instance specified by the given identifier- Parameters:
options- Options supplied for the Local instance- Throws:
Exception
-
isRunning
Checks if Local instance is running- Returns:
- true if Local instance is running, else false
- Throws:
Exception
-
runCommand
Executes the supplied command on the shell.- Parameters:
command- Command to be executed on the shell.- Returns:
Local.LocalProcessfor managing the launched process.- Throws:
IOException
-