Class OpenshiftPostgreSQL
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.openshift.OpenshiftPostgreSQL
- All Implemented Interfaces:
org.junit.jupiter.api.extension.AfterAllCallback,org.junit.jupiter.api.extension.BeforeAllCallback,org.junit.jupiter.api.extension.Extension,Deployable,OpenshiftDeployable,WithDockerImage,WithExternalHostname,WithInClusterHostname,WithName
@AutoService(PostgreSQL.class)
public class OpenshiftPostgreSQL
extends PostgreSQL
implements OpenshiftDeployable, WithName, WithInClusterHostname
-
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, restart, 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
beforeAllMethods inherited from interface software.tnb.common.deployment.OpenshiftDeployable
afterAll, deploy, restart, servicePod, servicePods, waitTimeMethods inherited from interface software.tnb.common.deployment.WithDockerImage
imageMethods inherited from interface software.tnb.common.deployment.WithInClusterHostname
inClusterHostname
-
Constructor Details
-
OpenshiftPostgreSQL
public OpenshiftPostgreSQL()
-
-
Method Details
-
create
public void create()- Specified by:
createin interfaceOpenshiftDeployable
-
undeploy
public void undeploy()- Specified by:
undeployin interfaceDeployable
-
openResources
public void openResources()- Specified by:
openResourcesin interfaceDeployable
-
closeResources
public void closeResources()- Specified by:
closeResourcesin interfaceDeployable
-
isReady
public boolean isReady()- Specified by:
isReadyin interfaceOpenshiftDeployable
-
isDeployed
public boolean isDeployed()- Specified by:
isDeployedin interfaceOpenshiftDeployable
-
podSelector
- Specified by:
podSelectorin interfaceOpenshiftDeployable- Specified by:
podSelectorin interfaceWithName
-
hostname
-
port
public int port() -
localPort
public int localPort() -
name
-