Package software.tnb.db.common.service
Class SQL
java.lang.Object
software.tnb.common.service.Service<SQLAccount,NoClient,SQLValidation>
software.tnb.db.common.service.SQL
- All Implemented Interfaces:
org.junit.jupiter.api.extension.AfterAllCallback,org.junit.jupiter.api.extension.BeforeAllCallback,org.junit.jupiter.api.extension.Extension,WithDockerImage,WithExternalHostname,WithName
public abstract class SQL
extends Service<SQLAccount,NoClient,SQLValidation>
implements WithName, WithExternalHostname, WithDockerImage
-
Field Summary
Fields inherited from class software.tnb.common.service.Service
account, client, validationFields inherited from interface software.tnb.common.deployment.WithDockerImage
SYSTEM_PROPERTY_FORMAT -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.junit.jupiter.api.extension.AfterAllCallback
afterAllMethods inherited from interface org.junit.jupiter.api.extension.BeforeAllCallback
beforeAllMethods inherited from interface software.tnb.common.deployment.WithDockerImage
defaultImage, imageMethods inherited from interface software.tnb.common.deployment.WithName
name, podSelector
-
Constructor Details
-
SQL
public SQL()
-
-
Method Details
-
accountClass
-
account
- Overrides:
accountin classService<SQLAccount,NoClient, SQLValidation>
-
jdbcConnectionUrl
-
hostname
-
port
public abstract int port() -
localPort
public int localPort() -
validation
- Overrides:
validationin classService<SQLAccount,NoClient, SQLValidation>
-
localConnectionUrl
Override this method in case the default replace doesn't work for the given type of database- Returns:
- local connection url (through port-forward in case of openshift)
-
containerEnvironment
-
externalHostname
- Specified by:
externalHostnamein interfaceWithExternalHostname
-
restart
-