Enum JdbcConnectionUrlParser
java.lang.Object
java.lang.Enum<JdbcConnectionUrlParser>
io.opentelemetry.instrumentation.jdbc.internal.JdbcConnectionUrlParser
- All Implemented Interfaces:
Serializable,Comparable<JdbcConnectionUrlParser>,java.lang.constant.Constable
Structured as an enum instead of a class hierarchy to allow iterating through the parsers
automatically without having to maintain a separate list of parsers.
This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDriver configuration doc mentions that besidesclickhousechcould also be used but ClickHouse Connection implementation always returns full prefixjdbc:clickhouse:Sample urls: jdbc:oceanbase://host:port/dbname jdbc:oceanbase:oracle://host:port/dbnameThis parser can locate incorrect data if multiple addresses are defined but not everything is defined in the first block.Sample url: jdbc:polardb://server_name:1901/dbname -
Method Summary
Modifier and TypeMethodDescriptionstatic DbInfoparse(String connectionUrl, Properties props) static JdbcConnectionUrlParserReturns the enum constant of this type with the specified name.static JdbcConnectionUrlParser[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
GENERIC_URL_LIKE
-
JTDS_URL_LIKE
-
MODIFIED_URL_LIKE
-
POSTGRES
-
MYSQL
-
MARIA_SUBPROTO
-
MARIA_ADDRESS
-
SAP
-
MSSQLSERVER
-
DB2
-
ORACLE
-
ORACLE_CONNECT_INFO
-
ORACLE_AT
-
ORACLE_AT_DESCRIPTION
This parser can locate incorrect data if multiple addresses are defined but not everything is defined in the first block. It would locate data from subsequent address blocks. -
H2
-
HSQL
-
DERBY
-
DATADIRECT
-
INFORMIX_SQLI
-
INFORMIX_DIRECT
-
CLICKHOUSE
Driver configuration doc mentions that besidesclickhousechcould also be used but ClickHouse Connection implementation always returns full prefixjdbc:clickhouse: -
OCEANBASE
Sample urls:- jdbc:oceanbase://host:port/dbname
- jdbc:oceanbase:oracle://host:port/dbname
-
LINDORM
Driver configuration docSample urls:
- jdbc:lindorm:table:url=http//server_name:30060/test
- jdbc:lindorm:tsdb:url=http://server_name:8242/test
- jabc:lindorm:search:url=http://server_name:30070/test
-
POLARDB
Sample url: jdbc:polardb://server_name:1901/dbname
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
parse
-