public class ElasticsearchContainer extends org.testcontainers.containers.GenericContainer<ElasticsearchContainer>
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
DEFAULT_TAG
Deprecated.
|
| Constructor and Description |
|---|
ElasticsearchContainer()
Deprecated.
use
ElasticsearchContainer(DockerImageName) instead |
ElasticsearchContainer(org.testcontainers.utility.DockerImageName dockerImageName)
Create an Elasticsearch Container by passing the full docker image name
|
ElasticsearchContainer(java.lang.String dockerImageName)
Create an Elasticsearch Container by passing the full docker image name
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getHttpHostAddress() |
java.net.InetSocketAddress |
getTcpHost()
Deprecated.
|
ElasticsearchContainer |
withPassword(java.lang.String password)
Define the Elasticsearch password to set.
|
addEnv, addExposedPort, addExposedPorts, addFileSystemBind, addFixedExposedPort, addFixedExposedPort, addLink, apply, canBeReused, configure, 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, toString, waitingFor, waitUntilContainerStarted, withAccessToHost, 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, 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, isRunning@Deprecated protected static final java.lang.String DEFAULT_TAG
@Deprecated public ElasticsearchContainer()
ElasticsearchContainer(DockerImageName) insteadpublic ElasticsearchContainer(java.lang.String dockerImageName)
dockerImageName - Full docker image name as a String, like: docker.elastic.co/elasticsearch/elasticsearch:7.9.2public ElasticsearchContainer(org.testcontainers.utility.DockerImageName dockerImageName)
dockerImageName - Full docker image name as a DockerImageName, like: DockerImageName.parse("docker.elastic.co/elasticsearch/elasticsearch:7.9.2")public ElasticsearchContainer withPassword(java.lang.String password)
password - Password to setpublic java.lang.String getHttpHostAddress()
@Deprecated public java.net.InetSocketAddress getTcpHost()