public interface ContainerState
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
STATE_HEALTHY |
Modifier and Type | Method and Description |
---|---|
default java.util.List<java.lang.Integer> |
getBoundPortNumbers() |
java.lang.String |
getContainerId() |
com.github.dockerjava.api.command.InspectContainerResponse |
getContainerInfo() |
default java.lang.String |
getContainerIpAddress()
Get the IP address that this container may be reached on (may not be the local machine).
|
default com.github.dockerjava.api.command.InspectContainerResponse |
getCurrentContainerInfo() |
java.util.List<java.lang.Integer> |
getExposedPorts() |
default java.lang.Integer |
getFirstMappedPort()
Get the actual mapped port for a first port exposed by the container.
|
default java.lang.String |
getLogs() |
default java.lang.String |
getLogs(OutputFrame.OutputType... types) |
default java.lang.Integer |
getMappedPort(int originalPort)
Get the actual mapped port for a given port exposed by the container.
|
default java.util.List<java.lang.String> |
getPortBindings() |
default boolean |
isCreated() |
default boolean |
isHealthy() |
default boolean |
isRunning() |
static final java.lang.String STATE_HEALTHY
default java.lang.String getContainerIpAddress()
default boolean isRunning()
default boolean isCreated()
default boolean isHealthy()
default com.github.dockerjava.api.command.InspectContainerResponse getCurrentContainerInfo()
default java.lang.Integer getFirstMappedPort()
java.lang.IllegalStateException
- if there are no exposed portsdefault java.lang.Integer getMappedPort(int originalPort)
originalPort
- the original TCP port that is exposedjava.util.List<java.lang.Integer> getExposedPorts()
default java.util.List<java.lang.String> getPortBindings()
default java.util.List<java.lang.Integer> getBoundPortNumbers()
default java.lang.String getLogs()
default java.lang.String getLogs(OutputFrame.OutputType... types)
types
- log types to returnjava.lang.String getContainerId()
com.github.dockerjava.api.command.InspectContainerResponse getContainerInfo()