Class OcpMongoDeploymentManager
java.lang.Object
io.debezium.testing.system.tools.databases.mongodb.sharded.OcpMongoDeploymentManager
- All Implemented Interfaces:
AutoCloseable,org.testcontainers.lifecycle.Startable
- Direct Known Subclasses:
OcpMongoReplicaSetMember
public class OcpMongoDeploymentManager
extends Object
implements org.testcontainers.lifecycle.Startable
Abstraction for a single mongo machine that you can start, stop and connect to using hostname
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate io.fabric8.kubernetes.api.model.apps.Deploymentprivate final io.fabric8.openshift.client.OpenShiftClientprivate final OpenShiftUtilsprivate final Stringprivate io.fabric8.kubernetes.api.model.Serviceprivate final String -
Constructor Summary
ConstructorsConstructorDescriptionOcpMongoDeploymentManager(io.fabric8.kubernetes.api.model.apps.Deployment deployment, io.fabric8.kubernetes.api.model.Service service, String serviceUrl, io.fabric8.openshift.client.OpenShiftClient ocp, String project) -
Method Summary
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
-
deployment
private io.fabric8.kubernetes.api.model.apps.Deployment deployment -
service
private io.fabric8.kubernetes.api.model.Service service -
serviceUrl
-
ocp
private final io.fabric8.openshift.client.OpenShiftClient ocp -
ocpUtils
-
project
-
-
Constructor Details
-
OcpMongoDeploymentManager
-
-
Method Details
-
start
public void start()- Specified by:
startin interfaceorg.testcontainers.lifecycle.Startable
-
stop
public void stop()- Specified by:
stopin interfaceorg.testcontainers.lifecycle.Startable
-
waitForStopped
public void waitForStopped() -
getHostname
-
getDeployment
public io.fabric8.kubernetes.api.model.apps.Deployment getDeployment() -
getService
public io.fabric8.kubernetes.api.model.Service getService() -
getServiceUrl
-
getOcp
public io.fabric8.openshift.client.OpenShiftClient getOcp() -
getOcpUtils
-
getProject
-