public class SolrContainer extends org.testcontainers.containers.GenericContainer<SolrContainer>
Supported image: solr
Exposed ports:
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_TAG
Deprecated.
|
static java.lang.String |
IMAGE
Deprecated.
|
static java.lang.Integer |
SOLR_PORT |
static java.lang.Integer |
ZOOKEEPER_PORT |
| Constructor and Description |
|---|
SolrContainer()
Deprecated.
use
SolrContainer(DockerImageName) instead |
SolrContainer(org.testcontainers.utility.DockerImageName dockerImageName) |
SolrContainer(java.lang.String dockerImageName)
Deprecated.
use
SolrContainer(DockerImageName) instead |
| Modifier and Type | Method and Description |
|---|---|
protected void |
configure() |
protected void |
containerIsStarted(com.github.dockerjava.api.command.InspectContainerResponse containerInfo) |
java.util.Set<java.lang.Integer> |
getLivenessCheckPortNumbers() |
int |
getSolrPort() |
int |
getZookeeperPort() |
protected void |
waitUntilContainerStarted() |
SolrContainer |
withCollection(java.lang.String collection) |
SolrContainer |
withConfiguration(java.lang.String name,
java.net.URL solrConfig) |
SolrContainer |
withSchema(java.net.URL schema) |
SolrContainer |
withZookeeper(boolean zookeeper) |
addEnv, addExposedPort, addExposedPorts, addFileSystemBind, addFixedExposedPort, addFixedExposedPort, addLink, apply, canBeReused, containerIsCreated, 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, 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, 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, execInContainerWithUser, execInContainerWithUser, getBoundPortNumbers, getContainerIpAddress, getCurrentContainerInfo, getFirstMappedPort, getHost, getLogs, getLogs, getMappedPort, isCreated, isHealthy, isRunning@Deprecated public static final java.lang.String IMAGE
@Deprecated public static final java.lang.String DEFAULT_TAG
public static final java.lang.Integer ZOOKEEPER_PORT
public static final java.lang.Integer SOLR_PORT
@Deprecated public SolrContainer()
SolrContainer(DockerImageName) insteadpublic SolrContainer(java.lang.String dockerImageName)
SolrContainer(DockerImageName) insteadpublic SolrContainer(org.testcontainers.utility.DockerImageName dockerImageName)
public SolrContainer withZookeeper(boolean zookeeper)
public SolrContainer withCollection(java.lang.String collection)
public SolrContainer withConfiguration(java.lang.String name, java.net.URL solrConfig)
public SolrContainer withSchema(java.net.URL schema)
public int getSolrPort()
public int getZookeeperPort()
protected void configure()
configure in class org.testcontainers.containers.GenericContainer<SolrContainer>public java.util.Set<java.lang.Integer> getLivenessCheckPortNumbers()
getLivenessCheckPortNumbers in interface org.testcontainers.containers.wait.strategy.WaitStrategyTargetgetLivenessCheckPortNumbers in class org.testcontainers.containers.GenericContainer<SolrContainer>protected void waitUntilContainerStarted()
waitUntilContainerStarted in class org.testcontainers.containers.GenericContainer<SolrContainer>protected void containerIsStarted(com.github.dockerjava.api.command.InspectContainerResponse containerInfo)
containerIsStarted in class org.testcontainers.containers.GenericContainer<SolrContainer>