public class VncRecordingContainer extends GenericContainer<VncRecordingContainer>
| Modifier and Type | Class and Description |
|---|---|
static class |
VncRecordingContainer.VncRecordingFormat |
Container.ExecResult| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_VNC_PASSWORD |
static int |
DEFAULT_VNC_PORT |
CONTAINER_RUNNING_TIMEOUT_SEC, dependencies, dockerClient, INTERNAL_HOST_HOSTNAME, waitStrategySTATE_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() |
VncRecordingContainer.VncRecordingFormat |
getVideoFormat() |
java.lang.String |
getVncPassword() |
int |
getVncPort() |
void |
saveRecordingToFile(@NonNull java.io.File file) |
java.io.InputStream |
streamRecording() |
java.lang.String |
toString() |
VncRecordingContainer |
withFrameRate(int frameRate) |
VncRecordingContainer |
withVideoFormat(VncRecordingContainer.VncRecordingFormat videoFormat) |
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, createVolumeDirectory, dependsOn, dependsOn, dependsOn, doStart, equals, failed, finished, getBinds, getCommandParts, getContainerId, getContainerInfo, getContainerName, getCopyToFileContainerPathMap, getCreateContainerCmdModifiers, getDependencies, getDockerClient, 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, isHostAccessible, isPrivilegedMode, isShouldBeReused, logger, setBinds, setCommand, setCommand, setCommandParts, setCopyToFileContainerPathMap, setDockerImageName, setEnv, setExposedPorts, setExtraHosts, setHostAccessible, setImage, setLabels, setLinkedContainers, setLogConsumers, setNetwork, setNetworkAliases, setNetworkMode, setPortBindings, setPrivilegedMode, setShmSize, setStartupAttempts, setStartupCheckStrategy, setTmpFsMapping, setVolumesFroms, setWaitStrategy, setWorkingDirectory, start, starting, stop, succeeded, waitingFor, waitUntilContainerStarted, withAccessToHost, withClasspathResourceMapping, withClasspathResourceMapping, withCommand, withCommand, withCopyFileToContainer, withCopyToContainer, withCreateContainerCmdModifier, withEnv, withEnv, withExposedPorts, withExtraHost, withFileSystemBind, withImagePullPolicy, withLabel, withLabels, withLogConsumer, withMinimumRunningDuration, withNetwork, withNetworkAliases, withNetworkMode, withPrivilegedMode, withReuse, withSharedMemorySize, withStartupAttempts, withStartupCheckStrategy, withStartupTimeout, withTmpFs, withVolumesFrom, withWorkingDirectoryclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddFileSystemBind, followOutput, followOutput, self, withEnv, withFileSystemBindcopyFileFromContainer, copyFileToContainer, copyFileToContainer, execInContainer, execInContainer, getBoundPortNumbers, getContainerIpAddress, getCurrentContainerInfo, getFirstMappedPort, getHost, getLogs, getLogs, getMappedPort, isCreated, isHealthy, isRunningpublic 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.IllegalStateExceptionpublic VncRecordingContainer withVncPassword(@NonNull @NonNull java.lang.String vncPassword)
public VncRecordingContainer withVncPort(int vncPort)
public VncRecordingContainer withVideoFormat(VncRecordingContainer.VncRecordingFormat videoFormat)
public VncRecordingContainer withFrameRate(int frameRate)
protected void configure()
configure in class GenericContainer<VncRecordingContainer>public java.io.InputStream streamRecording()
public void saveRecordingToFile(@NonNull
@NonNull java.io.File file)
public java.lang.String getTargetNetworkAlias()
public java.lang.String getVncPassword()
public VncRecordingContainer.VncRecordingFormat getVideoFormat()
public int getVncPort()
public int getFrameRate()
public java.lang.String toString()
toString in class GenericContainer<VncRecordingContainer>