public class RetryingDockerCompose extends Object
Constructor and Description |
---|
RetryingDockerCompose(int retryAttempts,
DockerCompose dockerCompose) |
RetryingDockerCompose(Retryer retryer,
DockerCompose dockerCompose) |
Modifier and Type | Method and Description |
---|---|
void |
build() |
String |
config() |
void |
down() |
String |
exec(DockerComposeExecOption dockerComposeExecOption,
String containerName,
DockerComposeExecArgument dockerComposeExecArgument) |
protected DockerCompose |
getDockerCompose() |
Optional<String> |
id(Container container) |
void |
kill() |
void |
kill(Container container) |
Ports |
ports(String service) |
List<ContainerName> |
ps() |
void |
pull() |
void |
rm() |
String |
run(DockerComposeRunOption dockerComposeRunOption,
String containerName,
DockerComposeRunArgument dockerComposeRunArgument) |
List<String> |
services() |
void |
start(Container container) |
void |
stop(Container container) |
void |
up() |
void |
up(Container container) |
boolean |
writeLogs(String container,
OutputStream output) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
version
public RetryingDockerCompose(int retryAttempts, DockerCompose dockerCompose)
public RetryingDockerCompose(Retryer retryer, DockerCompose dockerCompose)
public void up() throws IOException, InterruptedException
up
in interface DockerCompose
IOException
InterruptedException
public List<ContainerName> ps() throws IOException, InterruptedException
ps
in interface DockerCompose
IOException
InterruptedException
public void pull() throws IOException, InterruptedException
pull
in interface DockerCompose
IOException
InterruptedException
public void build() throws IOException, InterruptedException
build
in interface DockerCompose
IOException
InterruptedException
public void down() throws IOException, InterruptedException
down
in interface DockerCompose
IOException
InterruptedException
public void kill() throws IOException, InterruptedException
kill
in interface DockerCompose
IOException
InterruptedException
public void rm() throws IOException, InterruptedException
rm
in interface DockerCompose
IOException
InterruptedException
public void up(Container container) throws IOException, InterruptedException
up
in interface DockerCompose
IOException
InterruptedException
public void start(Container container) throws IOException, InterruptedException
start
in interface DockerCompose
IOException
InterruptedException
public void stop(Container container) throws IOException, InterruptedException
stop
in interface DockerCompose
IOException
InterruptedException
public void kill(Container container) throws IOException, InterruptedException
kill
in interface DockerCompose
IOException
InterruptedException
public String exec(DockerComposeExecOption dockerComposeExecOption, String containerName, DockerComposeExecArgument dockerComposeExecArgument) throws IOException, InterruptedException
exec
in interface DockerCompose
IOException
InterruptedException
public String run(DockerComposeRunOption dockerComposeRunOption, String containerName, DockerComposeRunArgument dockerComposeRunArgument) throws IOException, InterruptedException
run
in interface DockerCompose
IOException
InterruptedException
public Optional<String> id(Container container) throws IOException, InterruptedException
id
in interface DockerCompose
IOException
InterruptedException
public String config() throws IOException, InterruptedException
config
in interface DockerCompose
IOException
InterruptedException
public List<String> services() throws IOException, InterruptedException
services
in interface DockerCompose
IOException
InterruptedException
public boolean writeLogs(String container, OutputStream output) throws IOException
writeLogs
in interface DockerCompose
IOException
public Ports ports(String service) throws IOException, InterruptedException
ports
in interface DockerCompose
IOException
InterruptedException
protected final DockerCompose getDockerCompose()
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.