public class AxonServerEEContainer<SELF extends AxonServerEEContainer<SELF>>
extends org.testcontainers.containers.GenericContainer<SELF>
Constructor and Description |
---|
AxonServerEEContainer(org.testcontainers.utility.DockerImageName dockerImageName)
Initialize AxonServer EE with a given docker image.
|
AxonServerEEContainer(String dockerImageName)
Initialize AxonServer EE with a given docker image.
|
Modifier and Type | Method and Description |
---|---|
protected void |
configure() |
boolean |
equals(Object o) |
String |
getAxonServerAddress()
Returns the Axon Server's address container in a host:port format.
|
Integer |
getGrpcPort()
Returns the mapped GRPC port used by this Axon Server container.
|
int |
hashCode() |
protected void |
optionallyCopyResourceToContainer(String pathNameInContainer,
String resourceLocation)
Map (effectively replace) directory in Docker with the content of resourceLocation if resource location is not
null
|
String |
toString() |
SELF |
withAxonServerHostname(String axonServerHostname)
Initialize AxonServer EE with a given Axon Server Hostname.
|
SELF |
withAxonServerInternalHostname(String axonServerInternalHostname)
Initialize AxonServer EE with a given Axon Server Internal Hostname.
|
SELF |
withAxonServerName(String axonServerName)
Initialize AxonServer EE with a given Axon Server Name.
|
SELF |
withClusterTemplate(String clusterTemplatePath)
Initialize AxonServer EE with a given cluster template configuration file.
|
SELF |
withConfiguration(String configurationPath)
Initialize AxonServer EE with a given configuration file.
|
SELF |
withLicense(String licensePath)
Initialize AxonServer EE with a given license.
|
protected void |
withOptionalEnv(String key,
String value)
Set an environment value if the value is present.
|
addEnv, addExposedPort, addExposedPorts, addFileSystemBind, addFixedExposedPort, addFixedExposedPort, addLink, apply, canBeReused, containerIsCreated, containerIsStarted, containerIsStarted, containerIsStarting, containerIsStarting, containerIsStopped, containerIsStopping, copyFileFromContainer, createVolumeDirectory, dependsOn, dependsOn, dependsOn, doStart, 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, 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, withWorkingDirectory
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addFileSystemBind, followOutput, followOutput, self, withEnv, withFileSystemBind
copyFileFromContainer, copyFileToContainer, copyFileToContainer, execInContainer, execInContainer, getBoundPortNumbers, getContainerIpAddress, getCurrentContainerInfo, getFirstMappedPort, getHost, getLogs, getLogs, getMappedPort, isCreated, isHealthy, isRunning
public AxonServerEEContainer(String dockerImageName)
dockerImageName
- name of the docker imagepublic AxonServerEEContainer(org.testcontainers.utility.DockerImageName dockerImageName)
dockerImageName
- name of the docker imageprotected void configure()
configure
in class org.testcontainers.containers.GenericContainer<SELF extends AxonServerEEContainer<SELF>>
protected void optionallyCopyResourceToContainer(String pathNameInContainer, String resourceLocation)
Protected to allow for changing implementation by extending the class
pathNameInContainer
- path in dockerresourceLocation
- relative classpath to resourceprotected void withOptionalEnv(String key, String value)
Protected to allow for changing implementation by extending the class
key
- environment key value, usually a constantvalue
- environment value to be setpublic SELF withLicense(String licensePath)
licensePath
- path to the license file.public SELF withConfiguration(String configurationPath)
configurationPath
- path to the configuration file.public SELF withClusterTemplate(String clusterTemplatePath)
clusterTemplatePath
- path to the cluster template file.public SELF withAxonServerName(String axonServerName)
axonServerName
- name of the Axon Server.public SELF withAxonServerInternalHostname(String axonServerInternalHostname)
axonServerInternalHostname
- internal hostname of the Axon Server.public SELF withAxonServerHostname(String axonServerHostname)
axonServerHostname
- hostname of the Axon Server.public Integer getGrpcPort()
public String getAxonServerAddress()
public boolean equals(Object o)
equals
in class org.testcontainers.containers.GenericContainer<SELF extends AxonServerEEContainer<SELF>>
public int hashCode()
hashCode
in class org.testcontainers.containers.GenericContainer<SELF extends AxonServerEEContainer<SELF>>
public String toString()
toString
in class org.testcontainers.containers.GenericContainer<SELF extends AxonServerEEContainer<SELF>>
Copyright © 2010–2023. All rights reserved.