Class DatabaseDeployer<T extends DatabaseDeployer,C extends DatabaseController>
- java.lang.Object
-
- io.debezium.testing.openshift.tools.databases.DatabaseDeployer<T,C>
-
- Direct Known Subclasses:
DB2Deployer,MongoDeployer,MySqlDeployer,PostgreSqlDeployer,SqlServerDeployer
public abstract class DatabaseDeployer<T extends DatabaseDeployer,C extends DatabaseController> extends Object
- Author:
- Jakub Cechacek
-
-
Field Summary
Fields Modifier and Type Field Description private StringdbTypeprivate io.fabric8.kubernetes.api.model.apps.Deploymentdeploymentprivate static org.slf4j.LoggerLOGGERprivate io.fabric8.openshift.client.OpenShiftClientocpprivate OpenShiftUtilsocpUtilsprivate Stringprojectprivate List<io.fabric8.kubernetes.api.model.Service>services
-
Constructor Summary
Constructors Constructor Description DatabaseDeployer(String dbType, io.fabric8.openshift.client.OpenShiftClient ocp)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Cdeploy()abstract CgetController(io.fabric8.kubernetes.api.model.apps.Deployment deployment, List<io.fabric8.kubernetes.api.model.Service> services, String dbType, io.fabric8.openshift.client.OpenShiftClient ocp)abstract TgetThis()TwithDeployment(io.fabric8.kubernetes.api.model.apps.Deployment deployment)TwithDeployment(String yamlPath)TwithProject(String project)TwithServices(String... yamlPath)TwithServices(Collection<io.fabric8.kubernetes.api.model.Service> services)
-
-
-
Field Detail
-
LOGGER
private static final org.slf4j.Logger LOGGER
-
ocp
private final io.fabric8.openshift.client.OpenShiftClient ocp
-
ocpUtils
private final OpenShiftUtils ocpUtils
-
dbType
private final String dbType
-
project
private String project
-
deployment
private io.fabric8.kubernetes.api.model.apps.Deployment deployment
-
services
private List<io.fabric8.kubernetes.api.model.Service> services
-
-
Constructor Detail
-
DatabaseDeployer
public DatabaseDeployer(String dbType, io.fabric8.openshift.client.OpenShiftClient ocp)
-
-
Method Detail
-
withDeployment
public T withDeployment(io.fabric8.kubernetes.api.model.apps.Deployment deployment)
-
withServices
public T withServices(Collection<io.fabric8.kubernetes.api.model.Service> services)
-
deploy
public C deploy()
-
getThis
public abstract T getThis()
-
-