public class NatsContainer extends org.testcontainers.containers.GenericContainer<NatsContainer>
| Constructor and Description |
|---|
NatsContainer() |
NatsContainer(String dockerImageName) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getBootstrapServerUrl() |
String |
getClusterID() |
String |
getNetworkedBootstrapServerUrl() |
int |
hashCode() |
void |
stop() |
protected void |
waitUntilContainerStarted() |
NatsContainer |
withClusterId(String clusterId)
Sets the ClusterID of the NATS Streaming server.
|
void |
withStartupTimeoutSeconds(int startupTimeoutSeconds) |
NatsContainer |
withSystemParams(String key,
String value)
Sets additional NATS Streaming server System Parameters.
|
addEnv, addExposedPort, addExposedPorts, addFileSystemBind, addFixedExposedPort, addFixedExposedPort, addLink, apply, configure, containerIsCreated, containerIsStarted, containerIsStarting, containerIsStopped, containerIsStopping, copyFileFromContainer, copyFileFromContainer, copyFileToContainer, copyFileToContainer, createVolumeDirectory, dependsOn, dependsOn, doStart, 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, isPrivilegedMode, 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, succeeded, toString, waitingFor, withClasspathResourceMapping, withClasspathResourceMapping, withCommand, withCommand, withCopyFileToContainer, withCreateContainerCmdModifier, withEnv, withEnv, withExposedPorts, withExtraHost, withFileSystemBind, withLabel, withLabels, withLogConsumer, withMinimumRunningDuration, withNetwork, withNetworkAliases, withNetworkMode, withPrivilegedMode, withSharedMemorySize, withStartupAttempts, withStartupCheckStrategy, withStartupTimeout, withTmpFs, withVolumesFrom, withWorkingDirectoryclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddFileSystemBind, followOutput, followOutput, self, withEnv, withFileSystemBindpublic NatsContainer()
public NatsContainer(String dockerImageName)
public String getNetworkedBootstrapServerUrl()
public String getBootstrapServerUrl()
public void withStartupTimeoutSeconds(int startupTimeoutSeconds)
protected void waitUntilContainerStarted()
waitUntilContainerStarted in class org.testcontainers.containers.GenericContainer<NatsContainer>public NatsContainer withClusterId(String clusterId)
clusterId - Cluster IDpublic String getClusterID()
public NatsContainer withSystemParams(String key, String value)
key - System parameter keyvalue - System parameter keypublic void stop()
stop in interface org.testcontainers.lifecycle.Startablestop in class org.testcontainers.containers.GenericContainer<NatsContainer>public boolean equals(Object o)
equals in class org.testcontainers.containers.GenericContainer<NatsContainer>public int hashCode()
hashCode in class org.testcontainers.containers.GenericContainer<NatsContainer>Copyright © 2019 WSO2. All rights reserved.