Interface KarafContainer

  • All Superinterfaces:
    org.testcontainers.containers.Container, org.testcontainers.containers.ContainerState, org.testcontainers.containers.traits.LinkableContainer
    All Known Implementing Classes:
    MinionContainer, OpenNMSContainer, SentinelContainer

    public interface KarafContainer
    extends org.testcontainers.containers.Container
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.testcontainers.containers.Container

        org.testcontainers.containers.Container.ExecResult
    • Field Summary

      • Fields inherited from interface org.testcontainers.containers.ContainerState

        STATE_HEALTHY
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      SshClient ssh()
      Create a new SSH client connected to the Karaf shell in this container.
      • Methods inherited from interface org.testcontainers.containers.Container

        addEnv, addExposedPort, addExposedPorts, addFileSystemBind, addFileSystemBind, addLink, followOutput, followOutput, getBinds, getCommandParts, getDockerClient, getDockerImageName, getEnv, getEnvMap, getExtraHosts, getImage, getLinkedContainers, getPortBindings, getTestHostIpAddress, self, setBinds, setCommand, setCommand, setCommandParts, setDockerImageName, setEnv, setExposedPorts, setExtraHosts, setImage, setLinkedContainers, setPortBindings, setWaitStrategy, waitingFor, withClasspathResourceMapping, withClasspathResourceMapping, withCommand, withCommand, withCopyFileToContainer, withEnv, withEnv, withEnv, withExposedPorts, withExtraHost, withFileSystemBind, withFileSystemBind, withImagePullPolicy, withLabel, withLabels, withLogConsumer, withMinimumRunningDuration, withNetwork, withNetworkAliases, withNetworkMode, withPrivilegedMode, withStartupCheckStrategy, withStartupTimeout, withVolumesFrom, withWorkingDirectory
      • Methods inherited from interface org.testcontainers.containers.ContainerState

        copyFileFromContainer, copyFileFromContainer, copyFileToContainer, copyFileToContainer, execInContainer, execInContainer, getBoundPortNumbers, getContainerId, getContainerInfo, getContainerIpAddress, getCurrentContainerInfo, getExposedPorts, getFirstMappedPort, getHost, getLogs, getLogs, getMappedPort, isCreated, isHealthy, isRunning
      • Methods inherited from interface org.testcontainers.containers.traits.LinkableContainer

        getContainerName
    • Method Detail

      • ssh

        SshClient ssh()
        Create a new SSH client connected to the Karaf shell in this container.
        Returns:
        a new SSH client for this container