Class Ignite3ClusterContainer

java.lang.Object
org.apache.ignite.migrationtools.tests.containers.Ignite3ClusterContainer
All Implemented Interfaces:
AutoCloseable, org.testcontainers.lifecycle.Startable

public class Ignite3ClusterContainer extends Object implements org.testcontainers.lifecycle.Startable
Ignite 3 cluster container.
  • Field Details

    • network

      public final org.testcontainers.containers.Network network
    • node

      public final org.testcontainers.containers.GenericContainer node
  • Constructor Details

    • Ignite3ClusterContainer

      public Ignite3ClusterContainer()
    • Ignite3ClusterContainer

      public Ignite3ClusterContainer(org.testcontainers.containers.Network network)
      Constructor.
      Parameters:
      network - The network to deploy the containers on.
  • Method Details

    • withCredentials

      public Ignite3ClusterContainer withCredentials(@Nullable Map.Entry<String,String> credentials)
      Sets the credentials for this cluster.
    • withComputeAdapterLibs

      public Ignite3ClusterContainer withComputeAdapterLibs(Collection<org.testcontainers.utility.MountableFile> extraComputeLibs)
      Adds the compute adapter libraries to the container.
      Parameters:
      extraComputeLibs - Extra 3rd party libraries to add.
      Returns:
      The cluster container.
    • withDebug

      public Ignite3ClusterContainer withDebug()
      Enables debug.
    • start

      public void start()
      Specified by:
      start in interface org.testcontainers.lifecycle.Startable
    • stop

      public void stop()
      Specified by:
      stop in interface org.testcontainers.lifecycle.Startable
    • getInternalAddress

      public String getInternalAddress()
    • getAddress

      public String getAddress()
    • clientBuilder

      public org.apache.ignite3.client.IgniteClient.Builder clientBuilder()
    • buildClient

      public org.apache.ignite3.client.IgniteClient buildClient()
    • dockerImageName

      public static String dockerImageName()
      Retrieves the ignite 3 docker image name which should be used in the tests.
      Returns:
      The docker image name.