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.
  • 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.
    • withDebug

      public Ignite3ClusterContainer withDebug()
      Enables debug.
    • withLabel

      public Ignite3ClusterContainer withLabel(String label)
      Add a label to the cluster so that container assets, most notably logs, are easily identifiable.
      Parameters:
      label - Label.
      Returns:
      The cluster container.
    • 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()
    • dockerImageName

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

      public org.testcontainers.containers.GenericContainer<?> node()