public class VncRecordingContainer extends GenericContainer<VncRecordingContainer>
GenericContainer.AbstractWaitStrategy
Container.ExecResult
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_VNC_PASSWORD |
static int |
DEFAULT_VNC_PORT |
CONTAINER_RUNNING_TIMEOUT_SEC, containerId, containerName, dependencies, dockerClient, dockerDaemonInfo, INTERNAL_HOST_HOSTNAME, waitStrategy
STATE_HEALTHY
Constructor and Description |
---|
VncRecordingContainer(@NonNull GenericContainer<?> targetContainer) |
VncRecordingContainer(@NonNull Network network,
@NonNull java.lang.String targetNetworkAlias)
Create a sidekick container and attach it to another container.
|
Modifier and Type | Method and Description |
---|---|
protected void |
configure() |
int |
getFrameRate() |
java.lang.String |
getTargetNetworkAlias() |
java.lang.String |
getVncPassword() |
int |
getVncPort() |
void |
saveRecordingToFile(java.io.File file) |
java.io.InputStream |
streamRecording() |
java.lang.String |
toString() |
VncRecordingContainer |
withFrameRate(int frameRate) |
VncRecordingContainer |
withVncPassword(@NonNull java.lang.String vncPassword) |
VncRecordingContainer |
withVncPort(int vncPort) |
addEnv, addExposedPort, addExposedPorts, addFileSystemBind, addFixedExposedPort, addFixedExposedPort, addLink, apply, canBeReused, containerIsCreated, containerIsStarted, containerIsStarted, containerIsStarting, containerIsStarting, containerIsStopped, containerIsStopping, copyFileFromContainer, copyFileFromContainer, copyFileToContainer, copyFileToContainer, createVolumeDirectory, dependsOn, dependsOn, doStart, equals, execInContainer, execInContainer, failed, fetchDockerDaemonInfo, finished, getBinds, getCommandParts, getContainerId, getContainerInfo, getContainerName, getCopyToFileContainerPathMap, getCreateContainerCmdModifiers, getDependencies, getDockerClient, getDockerDaemonInfo, getDockerImageName, getEnv, getEnvMap, getExposedPorts, getExtraHosts, getImage, getIpAddress, getLabels, getLinkedContainers, getLivenessCheckPort, getLivenessCheckPortNumbers, getLivenessCheckPorts, getLogConsumers, getNetwork, getNetworkAliases, getNetworkMode, getPortBindings, getShmSize, getStartupAttempts, getStartupCheckStrategy, getTestHostIpAddress, getTmpFsMapping, getVolumesFroms, getWaitStrategy, getWorkingDirectory, hashCode, isPrivilegedMode, isShouldBeReused, logger, setBinds, setCommand, setCommand, setCommandParts, setCopyToFileContainerPathMap, setDockerImageName, setEnv, setExposedPorts, setExtraHosts, setImage, setLabels, setLinkedContainers, setLogConsumers, setNetwork, setNetworkAliases, setNetworkMode, setPortBindings, setPrivilegedMode, setShmSize, setStartupAttempts, setStartupCheckStrategy, setTmpFsMapping, setVolumesFroms, setWaitStrategy, setWorkingDirectory, start, starting, stop, succeeded, waitingFor, waitUntilContainerStarted, withClasspathResourceMapping, withClasspathResourceMapping, withCommand, withCommand, withCopyFileToContainer, withCreateContainerCmdModifier, withEnv, withEnv, withExposedPorts, withExtraHost, withFileSystemBind, withImagePullPolicy, withLabel, withLabels, withLogConsumer, withMinimumRunningDuration, withNetwork, withNetworkAliases, withNetworkMode, withPrivilegedMode, withReuse, withSharedMemorySize, withStartupAttempts, withStartupCheckStrategy, withStartupTimeout, withTmpFs, withVolumesFrom, withWorkingDirectory
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addFileSystemBind, followOutput, followOutput, self, withEnv, withFileSystemBind
getBoundPortNumbers, getContainerIpAddress, getCurrentContainerInfo, getFirstMappedPort, getLogs, getLogs, getMappedPort, isCreated, isHealthy, isRunning
public static final java.lang.String DEFAULT_VNC_PASSWORD
public static final int DEFAULT_VNC_PORT
public VncRecordingContainer(@NonNull @NonNull GenericContainer<?> targetContainer)
public VncRecordingContainer(@NonNull @NonNull Network network, @NonNull @NonNull java.lang.String targetNetworkAlias) throws java.lang.IllegalStateException
java.lang.IllegalStateException
public VncRecordingContainer withVncPassword(@NonNull @NonNull java.lang.String vncPassword)
public VncRecordingContainer withVncPort(int vncPort)
public VncRecordingContainer withFrameRate(int frameRate)
protected void configure()
configure
in class GenericContainer<VncRecordingContainer>
public java.io.InputStream streamRecording()
public void saveRecordingToFile(java.io.File file)
public java.lang.String getTargetNetworkAlias()
public java.lang.String getVncPassword()
public int getVncPort()
public int getFrameRate()
public java.lang.String toString()
toString
in class GenericContainer<VncRecordingContainer>