Enum Class JDBCConfigurationProperty
java.lang.Object
java.lang.Enum<JDBCConfigurationProperty>
org.odpi.openmetadata.adapters.connectors.resource.jdbc.controls.JDBCConfigurationProperty
- All Implemented Interfaces:
Serializable,Comparable<JDBCConfigurationProperty>,Constable
JDBCConfigurationProperty describes the configuration properties supported by the JDBC Resource connector.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAdditional properties passed straight through to the JDBC driver on every connection.Provides a name to use in messages about the database.The name of the database schema used to store the data.Connection string for the database where the schema is located.How often, in milliseconds, the pool probes an idle connection to check it is still usable, retiring it if it is not.How long, in milliseconds, a connection may be held by a caller before the connector logs a stack trace of whoever took it out.Sets the maximum time in seconds that this data source will wait while attempting to connect to a database.The number of milliseconds a caller waits for a free connection from the pool before failing.An optional configuration property that causes the named class to be loaded and registered as a driver.The maximum number of milliseconds a connection may live before the pool retires and replaces it.The maximum number of database connections this connector will hold open at once.The minimum number of idle connections the pool keeps ready.The name of the secrets collection within the secrets store to use for login credentials.The file name of the secrets store containing the log on credentials to access the database. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionReturn a summary of this enum to use in a service provider.static List<ConfigurationPropertyType> Retrieve all the defined configuration propertiesReturn the data type for the request parameter.Return the description of the request parameter.Return an example of the request parameter to help users understand how to set it up.getName()Return the name of the request parameter.Get recognizedConfigurationProperties for the connector.toString()Output of this enum class and main value.static JDBCConfigurationPropertyReturns the enum constant of this class with the specified name.static JDBCConfigurationProperty[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DATABASE_URL
Connection string for the database where the schema is located. This should set the current schema to your chosen schema. -
DATABASE_NAME
Provides a name to use in messages about the database. If it is not set then the connection URL string is used. -
DATABASE_SCHEMA
The name of the database schema used to store the data. This should match the schema set up in the database URL. -
SECRETS_STORE
The file name of the secrets store containing the log on credentials to access the database. -
SECRETS_COLLECTION_NAME
The name of the secrets collection within the secrets store to use for login credentials. -
JDBC_DRIVER_MANAGER_CLASS_NAME
An optional configuration property that causes the named class to be loaded and registered as a driver. This property only needs to be defined if the connector is experiencing exceptions related to a missing DriverManager class for the database URL. -
JDBC_CONNECTION_TIMEOUT
Sets the maximum time in seconds that this data source will wait while attempting to connect to a database. The default value is 0 which means use the system default timeout, if any; otherwise it means no timeout. -
ADDITIONAL_CONNECTION_PROPERTIES
Additional properties passed straight through to the JDBC driver on every connection. For example, Oracle's driver needs remarksReporting=true to return table/column REMARKS (comments) via DatabaseMetaData - without it they are silently omitted. -
JDBC_MAXIMUM_POOL_SIZE
The maximum number of database connections this connector will hold open at once. A separate pool is created for each connector instance, so the right value depends on what the connector instance is serving. A connector embedded in a repository or audit log destination is the single route to the database for a whole server and wants the default or more; a connector created per catalog target serves one target, so its value is multiplied by the number of catalog targets when sizing the database server and is usually better set lower.
A hosting connector may pass its own value for this property straight through to the connector it embeds, and that value takes precedence over one set on the embedded connection. -
JDBC_MINIMUM_IDLE
The minimum number of idle connections the pool keeps ready. Setting this equal to jdbcMaximumPoolSize gives a fixed-size pool, which is the recommended configuration for steady workloads. -
JDBC_CONNECTION_WAIT_TIMEOUT
The number of milliseconds a caller waits for a free connection from the pool before failing. This is distinct from jdbcConnectionTimeout, which limits how long the driver waits when opening a new network connection. -
JDBC_MAXIMUM_CONNECTION_LIFETIME
The maximum number of milliseconds a connection may live before the pool retires and replaces it. This must be set comfortably below any idle or lifetime limit imposed by the database server or intervening infrastructure, otherwise the pool will hand out connections that have already been closed at the far end. -
JDBC_CONNECTION_KEEPALIVE
How often, in milliseconds, the pool probes an idle connection to check it is still usable, retiring it if it is not. Zero disables the probe. This must be smaller than jdbcMaximumConnectionLifetime. Note that this is the pool's own liveness check and is separate from socket level TCP keepalive, which the connector switches on automatically for the drivers whose property name for it is known. -
JDBC_CONNECTION_LEAK_THRESHOLD
How long, in milliseconds, a connection may be held by a caller before the connector logs a stack trace of whoever took it out. Zero disables the check. This is a diagnostic aid for finding code that fails to close the connections it obtains; it does not itself reclaim the connection.
-
-
Field Details
-
name
-
description
-
dataType
-
example
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getName
Return the name of the request parameter.- Returns:
- string name
-
getDescription
Return the description of the request parameter.- Returns:
- text
-
getDataType
Return the data type for the request parameter.- Returns:
- data type name
-
getExample
Return an example of the request parameter to help users understand how to set it up.- Returns:
- example
-
getRecognizedConfigurationProperties
Get recognizedConfigurationProperties for the connector.- Returns:
- list of property names
-
getConfigurationPropertyTypes
Retrieve all the defined configuration properties- Returns:
- list
-
getConfigurationPropertyType
Return a summary of this enum to use in a service provider.- Returns:
- request parameter type
-
toString
Output of this enum class and main value.- Overrides:
toStringin classEnum<JDBCConfigurationProperty>- Returns:
- string showing enum value
-