Package org.axonframework.test.server
Class AxonServerEEContainer<SELF extends AxonServerEEContainer<SELF>>
java.lang.Object
org.testcontainers.containers.FailureDetectingExternalResource
org.testcontainers.containers.GenericContainer<SELF>
org.axonframework.test.server.AxonServerEEContainer<SELF>
- All Implemented Interfaces:
AutoCloseable,org.junit.rules.TestRule,org.testcontainers.containers.Container<SELF>,org.testcontainers.containers.ContainerState,org.testcontainers.containers.traits.LinkableContainer,org.testcontainers.containers.wait.strategy.WaitStrategyTarget,org.testcontainers.lifecycle.Startable
@Deprecated
public class AxonServerEEContainer<SELF extends AxonServerEEContainer<SELF>>
extends org.testcontainers.containers.GenericContainer<SELF>
Deprecated.
Constructs a single node AxonServer Enterprise Edition (EE) for testing.
- Since:
- 4.6.0
- Author:
- Lucas Campos
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.testcontainers.containers.Container
org.testcontainers.containers.Container.ExecResult -
Field Summary
Fields inherited from class org.testcontainers.containers.GenericContainer
CONTAINER_RUNNING_TIMEOUT_SEC, dependencies, dockerClient, INTERNAL_HOST_HOSTNAME, waitStrategyFields inherited from interface org.testcontainers.containers.ContainerState
STATE_HEALTHY -
Constructor Summary
ConstructorsConstructorDescriptionAxonServerEEContainer(String dockerImageName) Deprecated.Initialize AxonServer EE with a given docker image.AxonServerEEContainer(org.testcontainers.utility.DockerImageName dockerImageName) Deprecated.Initialize AxonServer EE with a given docker image. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidDeprecated.booleanDeprecated.Deprecated.Returns the Axon Server's address container in a host:port format.Deprecated.Returns the mapped GRPC port used by this Axon Server container.inthashCode()Deprecated.protected voidoptionallyCopyResourceToContainer(String pathNameInContainer, String resourceLocation) Deprecated.Map (effectively replace) directory in Docker with the content of resourceLocation if resource location is not nulltoString()Deprecated.withAxonServerHostname(String axonServerHostname) Deprecated.Initialize AxonServer EE with a given Axon Server Hostname.withAxonServerInternalHostname(String axonServerInternalHostname) Deprecated.Initialize AxonServer EE with a given Axon Server Internal Hostname.withAxonServerName(String axonServerName) Deprecated.Initialize AxonServer EE with a given Axon Server Name.withClusterTemplate(String clusterTemplatePath) Deprecated.Initialize AxonServer EE with a given cluster template configuration file.withConfiguration(String configurationPath) Deprecated.Initialize AxonServer EE with a given configuration file.withLicense(String licensePath) Deprecated.Initialize AxonServer EE with a given license.protected voidwithOptionalEnv(String key, String value) Deprecated.Set an environment value if the value is present.Methods inherited from class org.testcontainers.containers.GenericContainer
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, setContainerDef, 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, withWorkingDirectoryMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.testcontainers.containers.Container
addFileSystemBind, followOutput, followOutput, self, withEnv, withFileSystemBindMethods inherited from interface org.testcontainers.containers.ContainerState
copyFileFromContainer, copyFileToContainer, copyFileToContainer, execInContainer, execInContainer, execInContainer, execInContainer, execInContainerWithUser, execInContainerWithUser, getBoundPortNumbers, getContainerIpAddress, getCurrentContainerInfo, getFirstMappedPort, getHost, getLogs, getLogs, getMappedPort, isCreated, isHealthy, isRunningMethods inherited from interface org.testcontainers.lifecycle.Startable
close
-
Constructor Details
-
AxonServerEEContainer
Deprecated.Initialize AxonServer EE with a given docker image.- Parameters:
dockerImageName- name of the docker image
-
AxonServerEEContainer
public AxonServerEEContainer(org.testcontainers.utility.DockerImageName dockerImageName) Deprecated.Initialize AxonServer EE with a given docker image.- Parameters:
dockerImageName- name of the docker image
-
-
Method Details
-
configure
protected void configure()Deprecated.- Overrides:
configurein classorg.testcontainers.containers.GenericContainer<SELF extends AxonServerEEContainer<SELF>>
-
optionallyCopyResourceToContainer
protected void optionallyCopyResourceToContainer(String pathNameInContainer, String resourceLocation) Deprecated.Map (effectively replace) directory in Docker with the content of resourceLocation if resource location is not nullProtected to allow for changing implementation by extending the class
- Parameters:
pathNameInContainer- path in dockerresourceLocation- relative classpath to resource
-
withOptionalEnv
Deprecated.Set an environment value if the value is present.Protected to allow for changing implementation by extending the class
- Parameters:
key- environment key value, usually a constantvalue- environment value to be set
-
withLicense
Deprecated.Initialize AxonServer EE with a given license.- Parameters:
licensePath- path to the license file.- Returns:
- Container itself for fluent API.
-
withConfiguration
Deprecated.Initialize AxonServer EE with a given configuration file.- Parameters:
configurationPath- path to the configuration file.- Returns:
- Container itself for fluent API.
-
withClusterTemplate
Deprecated.Initialize AxonServer EE with a given cluster template configuration file.- Parameters:
clusterTemplatePath- path to the cluster template file.- Returns:
- Container itself for fluent API.
-
withAxonServerName
Deprecated.Initialize AxonServer EE with a given Axon Server Name.- Parameters:
axonServerName- name of the Axon Server.- Returns:
- Container itself for fluent API.
-
withAxonServerInternalHostname
Deprecated.Initialize AxonServer EE with a given Axon Server Internal Hostname.- Parameters:
axonServerInternalHostname- internal hostname of the Axon Server.- Returns:
- Container itself for fluent API.
-
withAxonServerHostname
Deprecated.Initialize AxonServer EE with a given Axon Server Hostname.- Parameters:
axonServerHostname- hostname of the Axon Server.- Returns:
- Container itself for fluent API.
-
getGrpcPort
Deprecated.Returns the mapped GRPC port used by this Axon Server container.- Returns:
- mapped GRPC port.
-
getAxonServerAddress
Deprecated.Returns the Axon Server's address container in a host:port format.- Returns:
- address in host:port format.
-
equals
Deprecated.- Overrides:
equalsin classorg.testcontainers.containers.GenericContainer<SELF extends AxonServerEEContainer<SELF>>
-
hashCode
public int hashCode()Deprecated.- Overrides:
hashCodein classorg.testcontainers.containers.GenericContainer<SELF extends AxonServerEEContainer<SELF>>
-
toString
Deprecated.- Overrides:
toStringin classorg.testcontainers.containers.GenericContainer<SELF extends AxonServerEEContainer<SELF>>
-
AxonServerContainerfollowing the merger of Standard and Enterprise edition into a single version.