public abstract static class TestContainerResourceManager.Builder<T extends TestContainerResourceManager<?>>
extends java.lang.Object
TestContainerResourceManager.| Modifier and Type | Field and Description | 
|---|---|
java.lang.String | 
containerImageName  | 
java.lang.String | 
containerImageTag  | 
java.lang.String | 
host  | 
int | 
port  | 
java.lang.String | 
testId  | 
boolean | 
useStaticContainer  | 
| Constructor and Description | 
|---|
Builder(java.lang.String testId,
       java.lang.String containerImageName,
       java.lang.String containerImageTag)  | 
| Modifier and Type | Method and Description | 
|---|---|
abstract T | 
build()
Builds and returns a Resource Manager that extends TestContainerResourceManager. 
 | 
TestContainerResourceManager.Builder<T> | 
setContainerImageName(java.lang.String containerName)
Sets the name of the test container image. 
 | 
TestContainerResourceManager.Builder<T> | 
setContainerImageTag(java.lang.String containerTag)
Sets the tag for the test container. 
 | 
TestContainerResourceManager.Builder<T> | 
setHost(java.lang.String containerHost)
Sets the host of the resource that the resource manager will connect to. 
 | 
TestContainerResourceManager.Builder<T> | 
setPort(int port)
Sets the port that the resource is hosted on. 
 | 
TestContainerResourceManager.Builder<T> | 
useStaticContainer()
Configures the resource manager to use a static resource instead of creating a new
 TestContainer instance of the resource. 
 | 
public java.lang.String testId
public java.lang.String containerImageName
public java.lang.String containerImageTag
@Nullable public java.lang.String host
public int port
public boolean useStaticContainer
public Builder(java.lang.String testId,
               java.lang.String containerImageName,
               java.lang.String containerImageTag)
public TestContainerResourceManager.Builder<T> setContainerImageName(java.lang.String containerName)
containerName - The name of the container image.public TestContainerResourceManager.Builder<T> setContainerImageTag(java.lang.String containerTag)
containerTag - The tag to use for the container.public TestContainerResourceManager.Builder<T> setHost(java.lang.String containerHost)
containerHost - the resource host address.public TestContainerResourceManager.Builder<T> setPort(int port)
port - the port the resource is hosted on.public TestContainerResourceManager.Builder<T> useStaticContainer()
Note: When this option is enabled, the setPort() and setHost() methods must also be called to configure the static resource address.
public abstract T build()