public class Container extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
Container(String containerName,
CubeContainer cubeContainer,
ConnectionMode connectionMode) |
| Modifier and Type | Method and Description |
|---|---|
CubeOutput |
exec(String... commands)
Executes given command inside this container.
|
int |
getBindPort(int exposedPort)
Returns binding port for given exposed port.
|
ConnectionMode |
getConnectionMode() |
String |
getContainerName() |
CubeContainer |
getCubeContainer() |
String |
getIpAddress()
Returns the ip where this container can be reachable from outside docker host.
|
String |
getLog()
Gets current logs of this container.
|
static ContainerBuilder |
withContainerName(String containerName) |
protected Container(String containerName, CubeContainer cubeContainer, ConnectionMode connectionMode)
public static ContainerBuilder withContainerName(String containerName)
public String getContainerName()
public CubeContainer getCubeContainer()
public ConnectionMode getConnectionMode()
public String getIpAddress()
public int getBindPort(int exposedPort)
exposedPort - to resolve.public CubeOutput exec(String... commands)
commands - to execute.public String getLog()
Copyright © 2018 JBoss by Red Hat. All rights reserved.