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 Details

    • deployment

      private io.fabric8.kubernetes.api.model.apps.Deployment deployment
    • service

      private io.fabric8.kubernetes.api.model.Service service
    • serviceUrl

      private final String serviceUrl
    • ocp

      private final io.fabric8.openshift.client.OpenShiftClient ocp
    • ocpUtils

      private final OpenShiftUtils ocpUtils
    • project

      private final String project
  • Constructor Details

    • OcpMongoDeploymentManager

      public OcpMongoDeploymentManager(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 Details

    • 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
    • waitForStopped

      public void waitForStopped()
    • getHostname

      public String getHostname()
    • getDeployment

      public io.fabric8.kubernetes.api.model.apps.Deployment getDeployment()
    • getService

      public io.fabric8.kubernetes.api.model.Service getService()
    • getServiceUrl

      public String getServiceUrl()
    • getOcp

      public io.fabric8.openshift.client.OpenShiftClient getOcp()
    • getOcpUtils

      public OpenShiftUtils getOcpUtils()
    • getProject

      public String getProject()