Class LocalPostgreSQL
java.lang.Object
software.tnb.common.service.Service<SQLAccount,NoClient,SQLValidation>
software.tnb.db.common.service.SQL
software.tnb.db.postgres.service.PostgreSQL
software.tnb.db.postgres.resource.local.LocalPostgreSQL
- All Implemented Interfaces:
org.junit.jupiter.api.extension.AfterAllCallback,org.junit.jupiter.api.extension.BeforeAllCallback,org.junit.jupiter.api.extension.Extension,Deployable,WithDockerImage,WithExternalHostname,WithName
@AutoService(PostgreSQL.class)
public class LocalPostgreSQL
extends PostgreSQL
implements Deployable
-
Field Summary
Fields inherited from class software.tnb.db.postgres.service.PostgreSQL
PORTFields 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 software.tnb.db.postgres.service.PostgreSQL
accountClass, containerEnvironment, defaultImage, jdbcConnectionUrlMethods inherited from class software.tnb.db.common.service.SQL
account, externalHostname, localConnectionUrl, localPort, validationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.tnb.common.deployment.Deployable
afterAll, beforeAll, restartMethods inherited from interface software.tnb.common.deployment.WithDockerImage
imageMethods inherited from interface software.tnb.common.deployment.WithName
podSelector
-
Constructor Details
-
LocalPostgreSQL
public LocalPostgreSQL()
-
-
Method Details
-
hostname
-
port
public int port() -
deploy
public void deploy()- Specified by:
deployin interfaceDeployable
-
undeploy
public void undeploy()- Specified by:
undeployin interfaceDeployable
-
openResources
public void openResources()- Specified by:
openResourcesin interfaceDeployable
-
closeResources
public void closeResources()- Specified by:
closeResourcesin interfaceDeployable
-
name
-
restart
-