Package io.trino.tests.cli
Class TrinoCliLauncher
- java.lang.Object
-
- io.trino.tempto.ProductTest
-
- io.trino.tests.cli.TrinoCliLauncher
-
- Direct Known Subclasses:
TestTrinoCli,TestTrinoLdapCli
public class TrinoCliLauncher extends io.trino.tempto.ProductTest
-
-
Field Summary
Fields Modifier and Type Field Description protected List<String>nationTableBatchLinesprotected List<String>nationTableInteractiveLinesprotected StringserverAddressprotected StringserverHostprotected static longTIMEOUTprotected TrinoCliProcesstrino
-
Constructor Summary
Constructors Modifier Constructor Description protectedTrinoCliLauncher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ProcessBuildergetProcessBuilder(List<String> arguments)protected voidlaunchTrinoCli(String... arguments)protected voidlaunchTrinoCli(List<String> arguments)protected voidstopPresto()
-
-
-
Field Detail
-
TIMEOUT
protected static final long TIMEOUT
- See Also:
- Constant Field Values
-
serverHost
@Inject protected String serverHost
-
serverAddress
@Inject protected String serverAddress
-
trino
protected TrinoCliProcess trino
-
-
Constructor Detail
-
TrinoCliLauncher
protected TrinoCliLauncher() throws IOException- Throws:
IOException
-
-
Method Detail
-
stopPresto
protected void stopPresto() throws InterruptedException- Throws:
InterruptedException
-
launchTrinoCli
protected void launchTrinoCli(String... arguments) throws IOException
- Throws:
IOException
-
launchTrinoCli
protected void launchTrinoCli(List<String> arguments) throws IOException
- Throws:
IOException
-
getProcessBuilder
protected ProcessBuilder getProcessBuilder(List<String> arguments)
-
-