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 static java.lang.StringEXIT_COMMANDprotected java.util.List<java.lang.String>nationTableBatchLinesprotected java.util.List<java.lang.String>nationTableInteractiveLinesprotected PrestoCliProcessprestoprotected java.lang.StringserverAddressprotected java.lang.StringserverHostprotected static longTIMEOUT
-
Constructor Summary
Constructors Modifier Constructor Description protectedPrestoCliLauncher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.ProcessBuildergetProcessBuilder(java.util.List<java.lang.String> arguments)protected voidlaunchPrestoCli(java.lang.String... arguments)protected voidlaunchPrestoCli(java.util.List<java.lang.String> arguments)protected voidstopPresto()
-
-
-
Field Detail
-
TIMEOUT
protected static final long TIMEOUT
- See Also:
- Constant Field Values
-
EXIT_COMMAND
protected static final java.lang.String EXIT_COMMAND
- See Also:
- Constant Field Values
-
nationTableInteractiveLines
protected final java.util.List<java.lang.String> nationTableInteractiveLines
-
nationTableBatchLines
protected final java.util.List<java.lang.String> nationTableBatchLines
-
serverHost
@Inject protected java.lang.String serverHost
-
serverAddress
@Inject protected java.lang.String serverAddress
-
presto
protected PrestoCliProcess presto
-
-
Method Detail
-
stopPresto
protected void stopPresto() throws java.lang.InterruptedException- Throws:
java.lang.InterruptedException
-
launchPrestoCli
protected void launchPrestoCli(java.lang.String... arguments) throws java.io.IOException- Throws:
java.io.IOException
-
launchPrestoCli
protected void launchPrestoCli(java.util.List<java.lang.String> arguments) throws java.io.IOException- Throws:
java.io.IOException
-
getProcessBuilder
protected java.lang.ProcessBuilder getProcessBuilder(java.util.List<java.lang.String> arguments)
-
-