Class Environment
- java.lang.Object
-
- io.prestosql.tests.product.launcher.env.Environment
-
- All Implemented Interfaces:
AutoCloseable
public final class Environment extends Object implements AutoCloseable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEnvironment.Builder
-
Field Summary
Fields Modifier and Type Field Description static IntegerENVIRONMENT_FAILED_EXIT_CODEstatic StringPRODUCT_TEST_LAUNCHER_ENVIRONMENT_LABEL_NAMEstatic StringPRODUCT_TEST_LAUNCHER_NETWORKstatic StringPRODUCT_TEST_LAUNCHER_STARTED_LABEL_NAMEstatic StringPRODUCT_TEST_LAUNCHER_STARTED_LABEL_VALUE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidawaitContainersStopped()longawaitTestsCompletion()static Environment.Builderbuilder(String name)voidclose()DockerContainergetContainer(String name)List<String>getContainerNames()Collection<DockerContainer>getContainers()Environmentstart()voidstop()StringtoString()
-
-
-
Field Detail
-
PRODUCT_TEST_LAUNCHER_STARTED_LABEL_NAME
public static final String PRODUCT_TEST_LAUNCHER_STARTED_LABEL_NAME
-
PRODUCT_TEST_LAUNCHER_STARTED_LABEL_VALUE
public static final String PRODUCT_TEST_LAUNCHER_STARTED_LABEL_VALUE
- See Also:
- Constant Field Values
-
PRODUCT_TEST_LAUNCHER_NETWORK
public static final String PRODUCT_TEST_LAUNCHER_NETWORK
- See Also:
- Constant Field Values
-
PRODUCT_TEST_LAUNCHER_ENVIRONMENT_LABEL_NAME
public static final String PRODUCT_TEST_LAUNCHER_ENVIRONMENT_LABEL_NAME
- See Also:
- Constant Field Values
-
ENVIRONMENT_FAILED_EXIT_CODE
public static final Integer ENVIRONMENT_FAILED_EXIT_CODE
-
-
Method Detail
-
start
public Environment start()
-
stop
public void stop()
-
awaitContainersStopped
public void awaitContainersStopped()
-
awaitTestsCompletion
public long awaitTestsCompletion()
-
getContainer
public DockerContainer getContainer(String name)
-
getContainers
public Collection<DockerContainer> getContainers()
-
builder
public static Environment.Builder builder(String name)
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable
-
-