Package cz.xtf.builder.db
Class PostgreSQL
-
- All Implemented Interfaces:
OpenShiftAuxiliary,SQLExecutor
public class PostgreSQL extends AbstractSQLDatabase
-
-
Field Summary
-
Fields inherited from class cz.xtf.builder.db.AbstractDatabase
configureEnvironment, dbName, external, isObjectStore, jndiName, nonXaDatasource, openShiftName, password, symbolicName, username, withLivenessProbe, withReadinessProbe, withStartupProbe
-
Fields inherited from class cz.xtf.builder.db.DefaultStatefulAuxiliary
dataDir, isStateful, persistentVolClaim, storagePartition
-
-
Constructor Summary
Constructors Constructor Description PostgreSQL()PostgreSQL(boolean withLivenessProbe, boolean withReadinessProbe)PostgreSQL(boolean withLivenessProbe, boolean withReadinessProbe, boolean withStartupProbe)PostgreSQL(PersistentVolumeClaim pvc)PostgreSQL(PersistentVolumeClaim pvc, boolean withLivenessProbe, boolean withReadinessProbe)PostgreSQL(PersistentVolumeClaim pvc, boolean withLivenessProbe, boolean withReadinessProbe, boolean withStartupProbe)PostgreSQL(String symbolicName, boolean withLivenessProbe, boolean withReadinessProbe)PostgreSQL(String symbolicName, boolean withLivenessProbe, boolean withReadinessProbe, boolean withStartupProbe)PostgreSQL(String username, String password, String dbName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetImageName()Map<String,String>getImageVariables()protected StringgetJDBCConnectionStringPattern()intgetPort()protected ProbeSettingsgetProbeSettings()Get readiness and liveness probes settings.StringtoString()-
Methods inherited from class cz.xtf.builder.db.AbstractSQLDatabase
configureContainer, executeSQL, executeSQLFile, getSQLExecutor
-
Methods inherited from class cz.xtf.builder.db.AbstractDatabase
asObjectStore, configureApplicationDeployment, configureDeployment, configureDeployment, configureEnvironment, configureService, external, getDbName, getDeploymentConfigName, getEnvVarPrefix, getPassword, getSymbolicName, getUsername, isObjectStore, jndiName, nonXaDatasource, withProbes
-
Methods inherited from class cz.xtf.builder.db.DefaultStatefulAuxiliary
stateful
-
-
-
-
Constructor Detail
-
PostgreSQL
public PostgreSQL()
-
PostgreSQL
public PostgreSQL(boolean withLivenessProbe, boolean withReadinessProbe)
-
PostgreSQL
public PostgreSQL(boolean withLivenessProbe, boolean withReadinessProbe, boolean withStartupProbe)
-
PostgreSQL
public PostgreSQL(PersistentVolumeClaim pvc)
-
PostgreSQL
public PostgreSQL(PersistentVolumeClaim pvc, boolean withLivenessProbe, boolean withReadinessProbe)
-
PostgreSQL
public PostgreSQL(PersistentVolumeClaim pvc, boolean withLivenessProbe, boolean withReadinessProbe, boolean withStartupProbe)
-
PostgreSQL
public PostgreSQL(String symbolicName, boolean withLivenessProbe, boolean withReadinessProbe)
-
PostgreSQL
public PostgreSQL(String symbolicName, boolean withLivenessProbe, boolean withReadinessProbe, boolean withStartupProbe)
-
-
Method Detail
-
getImageName
public String getImageName()
- Specified by:
getImageNamein classAbstractDatabase
-
getPort
public int getPort()
- Specified by:
getPortin classAbstractDatabase
-
getProbeSettings
protected ProbeSettings getProbeSettings()
Description copied from class:AbstractSQLDatabaseGet readiness and liveness probes settings. Override this for custom probe settings.- Overrides:
getProbeSettingsin classAbstractSQLDatabase
-
toString
public String toString()
- Overrides:
toStringin classAbstractDatabase
-
getJDBCConnectionStringPattern
protected String getJDBCConnectionStringPattern()
- Specified by:
getJDBCConnectionStringPatternin classAbstractSQLDatabase
-
getImageVariables
public Map<String,String> getImageVariables()
- Overrides:
getImageVariablesin classAbstractDatabase
-
-