Package cz.xtf.builder.db
Class OracleXE
-
- All Implemented Interfaces:
OpenShiftAuxiliary,SQLExecutor
public class OracleXE extends AbstractSQLDatabase
Note that to be able to use the oracleXE on Openshift you need to run as user with 54321 user id. This means that this class is only usable on clusters with admin privileges to be able to add securityContextConstraint More info on this topic: https://github.com/oracle/docker-images/issues/228 Also, the OracleXE image doesn't provide any option to add custom database and user on setup.
-
-
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 OracleXE()OracleXE(boolean withLivenessProbe, boolean withReadinessProbe)OracleXE(PersistentVolumeClaim pvc)OracleXE(PersistentVolumeClaim pvc, boolean withLivenessProbe, boolean withReadinessProbe)OracleXE(String symbolicName, boolean withLivenessProbe, boolean withReadinessProbe)OracleXE(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
-
OracleXE
public OracleXE()
-
OracleXE
public OracleXE(boolean withLivenessProbe, boolean withReadinessProbe)
-
OracleXE
public OracleXE(PersistentVolumeClaim pvc)
-
OracleXE
public OracleXE(PersistentVolumeClaim pvc, boolean withLivenessProbe, boolean withReadinessProbe)
-
OracleXE
public OracleXE(String symbolicName, boolean withLivenessProbe, boolean withReadinessProbe)
-
-
Method Detail
-
configureContainer
protected void configureContainer(ContainerBuilder containerBuilder)
- Overrides:
configureContainerin classAbstractSQLDatabase
-
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
-
getImageVariables
public Map<String,String> getImageVariables()
- Overrides:
getImageVariablesin classAbstractDatabase
-
getPort
public int getPort()
- Specified by:
getPortin classAbstractDatabase
-
-