Package cz.xtf.builder.db
Class MsSQL
-
- All Implemented Interfaces:
OpenShiftAuxiliary,SQLExecutor
public class MsSQL extends AbstractSQLDatabase
Note that MsSQL Server database needs to run with custom user id on Openshift (0 should do the trick) This means that this class is only usable on clusters with admin privileges to be able to add securityContextConstraint Also, the MsSQL image doesn't provide any option to add custom database and user on setup. By using this class you are accepting the Microsoft's EULA: https://go.microsoft.com/fwlink/?linkid=857698
-
-
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 MsSQL()MsSQL(boolean withLivenessProbe, boolean withReadinessProbe)MsSQL(PersistentVolumeClaim pvc)MsSQL(PersistentVolumeClaim pvc, boolean withLivenessProbe, boolean withReadinessProbe)MsSQL(String symbolicName, boolean withLivenessProbe, boolean withReadinessProbe)MsSQL(String username, String password, String dbName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidconfigureContainer(ContainerBuilder containerBuilder)StringgetImageName()Map<String,String>getImageVariables()protected StringgetJDBCConnectionStringPattern()intgetPort()protected ProbeSettingsgetProbeSettings()Get readiness and liveness probes settings.-
Methods inherited from class cz.xtf.builder.db.AbstractSQLDatabase
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, toString, withProbes
-
Methods inherited from class cz.xtf.builder.db.DefaultStatefulAuxiliary
stateful
-
-
-
-
Constructor Detail
-
MsSQL
public MsSQL()
-
MsSQL
public MsSQL(boolean withLivenessProbe, boolean withReadinessProbe)
-
MsSQL
public MsSQL(PersistentVolumeClaim pvc)
-
MsSQL
public MsSQL(PersistentVolumeClaim pvc, boolean withLivenessProbe, boolean withReadinessProbe)
-
MsSQL
public MsSQL(String symbolicName, boolean withLivenessProbe, boolean withReadinessProbe)
-
-
Method Detail
-
configureContainer
protected void configureContainer(ContainerBuilder containerBuilder)
- Overrides:
configureContainerin classAbstractSQLDatabase
-
getImageVariables
public Map<String,String> getImageVariables()
- Overrides:
getImageVariablesin classAbstractDatabase
-
getProbeSettings
protected ProbeSettings getProbeSettings()
Description copied from class:AbstractSQLDatabaseGet readiness and liveness probes settings. Override this for custom probe settings.- Overrides:
getProbeSettingsin classAbstractSQLDatabase
-
getJDBCConnectionStringPattern
protected String getJDBCConnectionStringPattern()
- Specified by:
getJDBCConnectionStringPatternin classAbstractSQLDatabase
-
getImageName
public String getImageName()
- Specified by:
getImageNamein classAbstractDatabase
-
getPort
public int getPort()
- Specified by:
getPortin classAbstractDatabase
-
-