public class Container extends Object
Constructor and Description |
---|
Container(String containerName,
Docker docker,
DockerCompose dockerCompose) |
Modifier and Type | Method and Description |
---|---|
SuccessOrFailure |
areAllPortsOpen() |
boolean |
equals(Object object) |
String |
getContainerName() |
int |
hashCode() |
void |
kill() |
static <T> Supplier<T> |
memoize(Supplier<T> original) |
DockerPort |
port(int internalPort) |
SuccessOrFailure |
portIsListeningOnHttp(int internalPort,
Function<DockerPort,String> urlFunction) |
SuccessOrFailure |
portIsListeningOnHttp(int internalPort,
Function<DockerPort,String> urlFunction,
boolean andCheckStatus) |
SuccessOrFailure |
portIsListeningOnHttpAndCheckStatus2xx(int internalPort,
Function<DockerPort,String> urlFunction) |
DockerPort |
portMappedExternallyTo(int externalPort) |
Ports |
ports() |
void |
start() |
State |
state() |
void |
stop() |
String |
toString() |
void |
up() |
public Container(String containerName, Docker docker, DockerCompose dockerCompose)
public String getContainerName()
public SuccessOrFailure portIsListeningOnHttpAndCheckStatus2xx(int internalPort, Function<DockerPort,String> urlFunction)
public SuccessOrFailure portIsListeningOnHttp(int internalPort, Function<DockerPort,String> urlFunction)
public SuccessOrFailure portIsListeningOnHttp(int internalPort, Function<DockerPort,String> urlFunction, boolean andCheckStatus)
public DockerPort portMappedExternallyTo(int externalPort)
public DockerPort port(int internalPort)
public void start() throws IOException, InterruptedException
IOException
InterruptedException
public void stop() throws IOException, InterruptedException
IOException
InterruptedException
public void kill() throws IOException, InterruptedException
IOException
InterruptedException
public State state() throws IOException, InterruptedException
IOException
InterruptedException
public void up() throws IOException, InterruptedException
IOException
InterruptedException
public Ports ports()
public SuccessOrFailure areAllPortsOpen()
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.