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, validation
-
Fields inherited from interface software.tnb.common.deployment.WithDockerImage
SYSTEM_PROPERTY_FORMAT
-
-
Constructor Summary
Constructors Constructor Description SQL()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description SQLAccountaccount()protected abstract Class<? extends SQLAccount>accountClass()abstract Map<String,String>containerEnvironment()StringexternalHostname()abstract Stringhostname()abstract StringjdbcConnectionUrl()protected StringlocalConnectionUrl()Override this method in case the default replace doesn't work for the given type of databaseintlocalPort()abstract intport()SQLValidationvalidation()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface software.tnb.common.deployment.WithDockerImage
defaultImage, image
-
Methods inherited from interface software.tnb.common.deployment.WithName
name, podSelector
-
-
-
-
Method Detail
-
accountClass
protected abstract Class<? extends SQLAccount> accountClass()
-
account
public SQLAccount account()
- Overrides:
accountin classService<SQLAccount,NoClient,SQLValidation>
-
jdbcConnectionUrl
public abstract String jdbcConnectionUrl()
-
hostname
public abstract String hostname()
-
port
public abstract int port()
-
localPort
public int localPort()
-
validation
public SQLValidation validation()
- Overrides:
validationin classService<SQLAccount,NoClient,SQLValidation>
-
localConnectionUrl
protected String 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)
-
externalHostname
public String externalHostname()
- Specified by:
externalHostnamein interfaceWithExternalHostname
-
-