Package cz.xtf.builder.db
Class MySQL
-
- All Implemented Interfaces:
OpenShiftAuxiliary,SQLExecutor
public class MySQL 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 MySQL()MySQL(boolean withLivenessProbe, boolean withReadinessProbe)MySQL(boolean withLivenessProbe, boolean withReadinessProbe, boolean withStartupProbe)MySQL(PersistentVolumeClaim pvc)MySQL(PersistentVolumeClaim pvc, boolean withLivenessProbe, boolean withReadinessProbe)MySQL(PersistentVolumeClaim pvc, boolean withLivenessProbe, boolean withReadinessProbe, boolean withStartupProbe)MySQL(String username, String password, String dbName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetImageName()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, getImageVariables, getPassword, getSymbolicName, getUsername, isObjectStore, jndiName, nonXaDatasource, withProbes
-
Methods inherited from class cz.xtf.builder.db.DefaultStatefulAuxiliary
stateful
-
-
-
-
Constructor Detail
-
MySQL
public MySQL()
-
MySQL
public MySQL(boolean withLivenessProbe, boolean withReadinessProbe)
-
MySQL
public MySQL(boolean withLivenessProbe, boolean withReadinessProbe, boolean withStartupProbe)
-
MySQL
public MySQL(PersistentVolumeClaim pvc)
-
MySQL
public MySQL(PersistentVolumeClaim pvc, boolean withLivenessProbe, boolean withReadinessProbe)
-
MySQL
public MySQL(PersistentVolumeClaim pvc, 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
-
-