public class SqlDatabaseController extends DatabaseController<SqlDatabaseClient>
| Modifier and Type | Field and Description |
|---|---|
private static org.slf4j.Logger |
LOGGER |
dbType, deployment, name, ocp, ocpUtils, project, services| Constructor and Description |
|---|
SqlDatabaseController(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 String |
constructDatabaseUrl(String hostname,
int port) |
SqlDatabaseClient |
getDatabaseClient(String username,
String password) |
void |
initialize() |
getDatabaseUrl, reloadprotected String constructDatabaseUrl(String hostname, int port)
constructDatabaseUrl in class DatabaseController<SqlDatabaseClient>public void initialize()
throws InterruptedException
initialize in class DatabaseController<SqlDatabaseClient>InterruptedExceptionpublic SqlDatabaseClient getDatabaseClient(String username, String password)
getDatabaseClient in class DatabaseController<SqlDatabaseClient>Copyright © 2020 JBoss by Red Hat. All rights reserved.