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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionIgnite3ClusterContainer(org.testcontainers.containers.Network network) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.ignite3.client.IgniteClientorg.apache.ignite3.client.IgniteClient.Builderstatic 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.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
-
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
Sets the credentials for this cluster. -
withDebug
Enables debug. -
start
public void start()- Specified by:
startin interfaceorg.testcontainers.lifecycle.Startable
-
stop
public void stop()- Specified by:
stopin interfaceorg.testcontainers.lifecycle.Startable
-
getInternalAddress
-
getAddress
-
clientBuilder
public org.apache.ignite3.client.IgniteClient.Builder clientBuilder() -
buildClient
public org.apache.ignite3.client.IgniteClient buildClient() -
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()
-