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.
In favor of AxonServerContainer following the merger of Standard and Enterprise edition into a single version.
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, waitStrategy

    Fields inherited from interface org.testcontainers.containers.ContainerState

    STATE_HEALTHY
  • Constructor Summary

    Constructors
    Constructor
    Description
    AxonServerEEContainer(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 Type
    Method
    Description
    protected void
    Deprecated.
     
    boolean
    Deprecated.
     
    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.
    int
    Deprecated.
     
    protected void
    optionallyCopyResourceToContainer(String pathNameInContainer, String resourceLocation)
    Deprecated.
    Map (effectively replace) directory in Docker with the content of resourceLocation if resource location is not null
    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 void
    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, withWorkingDirectory

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.testcontainers.containers.Container

    addFileSystemBind, followOutput, followOutput, self, withEnv, withFileSystemBind

    Methods 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, isRunning

    Methods inherited from interface org.testcontainers.lifecycle.Startable

    close
  • Constructor Details

    • AxonServerEEContainer

      public AxonServerEEContainer(String dockerImageName)
      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:
      configure in class org.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 null

      Protected to allow for changing implementation by extending the class

      Parameters:
      pathNameInContainer - path in docker
      resourceLocation - relative classpath to resource
    • withOptionalEnv

      protected void withOptionalEnv(String key, String value)
      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 constant
      value - environment value to be set
    • withLicense

      public SELF withLicense(String licensePath)
      Deprecated.
      Initialize AxonServer EE with a given license.
      Parameters:
      licensePath - path to the license file.
      Returns:
      Container itself for fluent API.
    • withConfiguration

      public SELF withConfiguration(String configurationPath)
      Deprecated.
      Initialize AxonServer EE with a given configuration file.
      Parameters:
      configurationPath - path to the configuration file.
      Returns:
      Container itself for fluent API.
    • withClusterTemplate

      public SELF withClusterTemplate(String clusterTemplatePath)
      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

      public SELF withAxonServerName(String axonServerName)
      Deprecated.
      Initialize AxonServer EE with a given Axon Server Name.
      Parameters:
      axonServerName - name of the Axon Server.
      Returns:
      Container itself for fluent API.
    • withAxonServerInternalHostname

      public SELF withAxonServerInternalHostname(String axonServerInternalHostname)
      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

      public SELF withAxonServerHostname(String axonServerHostname)
      Deprecated.
      Initialize AxonServer EE with a given Axon Server Hostname.
      Parameters:
      axonServerHostname - hostname of the Axon Server.
      Returns:
      Container itself for fluent API.
    • getGrpcPort

      public Integer getGrpcPort()
      Deprecated.
      Returns the mapped GRPC port used by this Axon Server container.
      Returns:
      mapped GRPC port.
    • getAxonServerAddress

      public String getAxonServerAddress()
      Deprecated.
      Returns the Axon Server's address container in a host:port format.
      Returns:
      address in host:port format.
    • equals

      public boolean equals(Object o)
      Deprecated.
      Overrides:
      equals in class org.testcontainers.containers.GenericContainer<SELF extends AxonServerEEContainer<SELF>>
    • hashCode

      public int hashCode()
      Deprecated.
      Overrides:
      hashCode in class org.testcontainers.containers.GenericContainer<SELF extends AxonServerEEContainer<SELF>>
    • toString

      public String toString()
      Deprecated.
      Overrides:
      toString in class org.testcontainers.containers.GenericContainer<SELF extends AxonServerEEContainer<SELF>>