public static class DockerComposeRule.Builder<T extends DockerComposeRule.Builder<T>> extends Object
Modifier and Type | Field and Description |
---|---|
protected List<ClusterWait> |
clusterWaits |
protected DockerComposeFiles |
files |
protected LogCollector |
logCollector |
protected DockerMachine |
machine |
protected ProjectName |
projectName |
protected boolean |
pullOnStartup |
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
DockerComposeRule |
build() |
T |
clusterWaits(Iterable<? extends ClusterWait> elements) |
T |
file(String dockerComposeYmlFile) |
T |
files(DockerComposeFiles files) |
T |
logCollector(LogCollector logCollector) |
T |
machine(DockerMachine machine) |
T |
projectName(ProjectName projectName) |
T |
pullOnStartup(boolean pullOnStartup) |
T |
saveLogsTo(String path)
Save the output of docker logs to files, stored in the
path directory. |
T |
waitingForHostNetworkedPort(int port,
HealthCheck<DockerPort> healthCheck) |
T |
waitingForHostNetworkedPort(int port,
HealthCheck<DockerPort> healthCheck,
org.joda.time.ReadableDuration timeout) |
T |
waitingForService(String serviceName,
HealthCheck<Container> healthCheck)
Deprecated.
|
T |
waitingForService(String serviceName,
HealthCheck<Container> healthCheck,
org.joda.time.ReadableDuration timeout) |
T |
waitingForServices(List<String> services,
HealthCheck<List<Container>> healthCheck) |
T |
waitingForServices(List<String> services,
HealthCheck<List<Container>> healthCheck,
org.joda.time.ReadableDuration timeout) |
protected DockerComposeFiles files
protected List<ClusterWait> clusterWaits
protected LogCollector logCollector
protected DockerMachine machine
protected boolean pullOnStartup
protected ProjectName projectName
public T files(DockerComposeFiles files)
public T saveLogsTo(String path)
path
directory.
See LogDirectory
for some useful utilities, for example:
LogDirectory.circleAwareLogDirectory(java.lang.Class<?>)
.path
- directory into which log files should be savedpublic T logCollector(LogCollector logCollector)
@Deprecated public T waitingForService(String serviceName, HealthCheck<Container> healthCheck)
public T waitingForService(String serviceName, HealthCheck<Container> healthCheck, org.joda.time.ReadableDuration timeout)
public T waitingForServices(List<String> services, HealthCheck<List<Container>> healthCheck)
public T waitingForServices(List<String> services, HealthCheck<List<Container>> healthCheck, org.joda.time.ReadableDuration timeout)
public T waitingForHostNetworkedPort(int port, HealthCheck<DockerPort> healthCheck)
public T waitingForHostNetworkedPort(int port, HealthCheck<DockerPort> healthCheck, org.joda.time.ReadableDuration timeout)
public T clusterWaits(Iterable<? extends ClusterWait> elements)
public T machine(DockerMachine machine)
public T pullOnStartup(boolean pullOnStartup)
public T projectName(ProjectName projectName)
public DockerComposeRule build()
Copyright © 2021 Pivotal Software, Inc.. All rights reserved.