Class DatabaseController<C extends DatabaseClient<?,?>>
- java.lang.Object
-
- io.debezium.testing.openshift.tools.databases.DatabaseController<C>
-
- Direct Known Subclasses:
MongoController,SqlDatabaseController
public abstract class DatabaseController<C extends DatabaseClient<?,?>> extends Object
- Author:
- Jakub Cechacek
-
-
Field Summary
Fields Modifier and Type Field Description protected StringdbTypeprotected io.fabric8.kubernetes.api.model.apps.Deploymentdeploymentprivate static org.slf4j.LoggerLOGGERprotected Stringnameprotected io.fabric8.openshift.client.OpenShiftClientocpprotected OpenShiftUtilsocpUtilsprotected Stringprojectprotected List<io.fabric8.kubernetes.api.model.Service>services
-
Constructor Summary
Constructors Constructor Description DatabaseController(io.fabric8.kubernetes.api.model.apps.Deployment deployment, List<io.fabric8.kubernetes.api.model.Service> services, String dbType, io.fabric8.openshift.client.OpenShiftClient ocp)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description private voidawaitIngress()protected abstract StringconstructDatabaseUrl(String hostname, int port)abstract CgetDatabaseClient(String username, String password)StringgetDatabaseUrl()private io.fabric8.kubernetes.api.model.ServicegetService()abstract voidinitialize()voidreload()
-
-
-
Field Detail
-
LOGGER
private static final org.slf4j.Logger LOGGER
-
ocp
protected final io.fabric8.openshift.client.OpenShiftClient ocp
-
project
protected final String project
-
dbType
protected final String dbType
-
ocpUtils
protected final OpenShiftUtils ocpUtils
-
deployment
protected io.fabric8.kubernetes.api.model.apps.Deployment deployment
-
name
protected String name
-
services
protected List<io.fabric8.kubernetes.api.model.Service> services
-
-
Method Detail
-
getService
private io.fabric8.kubernetes.api.model.Service getService()
-
awaitIngress
private void awaitIngress()
-
getDatabaseUrl
public String getDatabaseUrl()
-
reload
public void reload() throws InterruptedException- Throws:
InterruptedException
-
initialize
public abstract void initialize() throws InterruptedException- Throws:
InterruptedException
-
-