Package cz.xtf.builder.db
Class AbstractOracle
-
- All Implemented Interfaces:
OpenShiftAuxiliary,SQLExecutor
- Direct Known Subclasses:
OracleFREE,OracleXE
public abstract class AbstractOracle extends AbstractSQLDatabase
Note that to be able to use the Oracle Database Express or Oracle Database Free 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 Oracle Database Express and Oracle Database Free images doesn't provide any option to add custom database and user on setup.
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringANYUID_SERVICE_ACCOUNTprotected static StringDATA_DIRprotected static StringDB_NAMEprotected static StringPASSWORDprotected static StringSYMBOLIC_NAMEprotected static LongUSER_IDprotected static StringUSERNAME-
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 AbstractOracle(String dbName)AbstractOracle(String dbName, boolean withLivenessProbe, boolean withReadinessProbe)AbstractOracle(String dbName, PersistentVolumeClaim pvc)AbstractOracle(String dbName, PersistentVolumeClaim pvc, boolean withLivenessProbe, boolean withReadinessProbe)AbstractOracle(String dbName, String symbolicName, boolean withLivenessProbe, boolean withReadinessProbe)
-
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, getImageArgs, getPassword, getServiceAccount, getSymbolicName, getUsername, isObjectStore, jndiName, nonXaDatasource, setDeploymentConfigName, setEnvVarPrefix, toString, withProbes
-
Methods inherited from class cz.xtf.builder.db.DefaultStatefulAuxiliary
stateful
-
-
-
-
Field Detail
-
ANYUID_SERVICE_ACCOUNT
protected static final String ANYUID_SERVICE_ACCOUNT
- See Also:
- Constant Field Values
-
USER_ID
protected static final Long USER_ID
-
USERNAME
protected static final String USERNAME
- See Also:
- Constant Field Values
-
PASSWORD
protected static final String PASSWORD
- See Also:
- Constant Field Values
-
DB_NAME
protected static String DB_NAME
-
SYMBOLIC_NAME
protected static final String SYMBOLIC_NAME
- See Also:
- Constant Field Values
-
DATA_DIR
protected static final String DATA_DIR
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AbstractOracle
public AbstractOracle(String dbName)
-
AbstractOracle
public AbstractOracle(String dbName, boolean withLivenessProbe, boolean withReadinessProbe)
-
AbstractOracle
public AbstractOracle(String dbName, PersistentVolumeClaim pvc)
-
AbstractOracle
public AbstractOracle(String dbName, PersistentVolumeClaim pvc, 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
-
-