Package io.prestosql.tests.cli
Class PrestoCliLauncher
- java.lang.Object
-
- io.prestosql.tempto.ProductTest
-
- io.prestosql.tests.cli.PrestoCliLauncher
-
- Direct Known Subclasses:
TestPrestoCli,TestPrestoLdapCli
public class PrestoCliLauncher extends io.prestosql.tempto.ProductTest
-
-
Field Summary
Fields Modifier and Type Field Description protected List<String>nationTableBatchLinesprotected List<String>nationTableInteractiveLinesprotected PrestoCliProcessprestoprotected StringserverAddressprotected StringserverHostprotected static longTIMEOUT
-
Constructor Summary
Constructors Modifier Constructor Description protectedPrestoCliLauncher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ProcessBuildergetProcessBuilder(List<String> arguments)protected voidlaunchPrestoCli(String... arguments)protected voidlaunchPrestoCli(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
-
presto
protected PrestoCliProcess presto
-
-
Constructor Detail
-
PrestoCliLauncher
protected PrestoCliLauncher() throws IOException- Throws:
IOException
-
-
Method Detail
-
stopPresto
protected void stopPresto() throws InterruptedException- Throws:
InterruptedException
-
launchPrestoCli
protected void launchPrestoCli(String... arguments) throws IOException
- Throws:
IOException
-
launchPrestoCli
protected void launchPrestoCli(List<String> arguments) throws IOException
- Throws:
IOException
-
getProcessBuilder
protected ProcessBuilder getProcessBuilder(List<String> arguments)
-
-