public abstract class DatabaseController<C extends DatabaseClient<?,?>> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
dbType |
protected io.fabric8.kubernetes.api.model.apps.Deployment |
deployment |
private static org.slf4j.Logger |
LOGGER |
protected String |
name |
protected io.fabric8.openshift.client.OpenShiftClient |
ocp |
protected OpenShiftUtils |
ocpUtils |
protected String |
project |
protected List<io.fabric8.kubernetes.api.model.Service> |
services |
| Constructor and 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) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract String |
constructDatabaseUrl(String hostname,
int port) |
abstract C |
getDatabaseClient(String username,
String password) |
String |
getDatabaseUrl() |
abstract void |
initialize() |
void |
reload() |
private static final org.slf4j.Logger LOGGER
protected final io.fabric8.openshift.client.OpenShiftClient ocp
protected final String project
protected final String dbType
protected final OpenShiftUtils ocpUtils
protected io.fabric8.kubernetes.api.model.apps.Deployment deployment
protected String name
protected List<io.fabric8.kubernetes.api.model.Service> services
public String getDatabaseUrl()
public void reload()
throws InterruptedException
InterruptedExceptionpublic abstract void initialize()
throws InterruptedException
InterruptedExceptionCopyright © 2020 JBoss by Red Hat. All rights reserved.