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 Summary
ConstructorsConstructorDescriptionIgnite3ClusterContainer(org.testcontainers.containers.Network network) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringRetrieves the ignite 3 docker image name which should be used in the tests.org.testcontainers.containers.GenericContainer<?>node()voidstart()voidstop()withCredentials(Map.Entry<String, String> credentials) Sets the credentials for this cluster.Enables debug.Add a label to the cluster so that container assets, most notably logs, are easily identifiable.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.testcontainers.lifecycle.Startable
close, getDependencies
-
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
Sets the credentials for this cluster. -
withDebug
Enables debug. -
withLabel
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:
startin interfaceorg.testcontainers.lifecycle.Startable
-
stop
public void stop()- Specified by:
stopin interfaceorg.testcontainers.lifecycle.Startable
-
getInternalAddress
-
getAddress
-
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()
-