Package cz.xtf.builder.db
Class DB2
-
- All Implemented Interfaces:
OpenShiftAuxiliary,SQLExecutor
public class DB2 extends AbstractSQLDatabase
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDB2.Builder
-
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 DB2(DB2.Builder builder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>getImageArgs()StringgetImageName()Map<String,String>getImageVariables()protected StringgetJDBCConnectionStringPattern()intgetPort()protected ProbeSettingsgetProbeSettings()Get readiness and liveness probes settings.StringgetServiceAccount()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, setDeploymentConfigName, setEnvVarPrefix, withProbes
-
Methods inherited from class cz.xtf.builder.db.DefaultStatefulAuxiliary
stateful
-
-
-
-
Constructor Detail
-
DB2
public DB2(DB2.Builder builder)
-
-
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
-
getImageVariables
public Map<String,String> getImageVariables()
- Overrides:
getImageVariablesin classAbstractDatabase
-
toString
public String toString()
- Overrides:
toStringin classAbstractDatabase
-
getJDBCConnectionStringPattern
protected String getJDBCConnectionStringPattern()
- Specified by:
getJDBCConnectionStringPatternin classAbstractSQLDatabase
-
getImageArgs
public List<String> getImageArgs()
- Overrides:
getImageArgsin classAbstractDatabase
-
getServiceAccount
public String getServiceAccount()
- Overrides:
getServiceAccountin classAbstractDatabase
-
-