Class OracleURLParser
java.lang.Object
org.apache.skywalking.apm.plugin.jdbc.connectionurl.parser.AbstractURLParser
org.apache.skywalking.apm.plugin.jdbc.connectionurl.parser.OracleURLParser
- All Implemented Interfaces:
ConnectionURLParser
OracleURLParser presents that how to parse oracle connection url.
Note: OracleURLParser can parse the commons/TNS connection url. the commons connection url is of the form:
jdbc:oracle:(drivertype):@(database), the other the form of connection url cannot be parsed successfully.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class org.apache.skywalking.apm.plugin.jdbc.connectionurl.parser.AbstractURLParser
url -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected URLLocationFetch the index range that database host and port from connection url.protected StringFetch database name from connection url.protected URLLocationFetch the index range that database name from connection url.parse()ConnectionURLParserparses database name and the database host(s) from connection url.Methods inherited from class org.apache.skywalking.apm.plugin.jdbc.connectionurl.parser.AbstractURLParser
fetchDatabaseHostsFromURL, fetchDatabaseNameFromURL
-
Field Details
-
SERVICE_NAME_FLAG
- See Also:
-
TNSNAME_URL_FLAG
- See Also:
-
SERVICE_NAME_FIELD
- See Also:
-
HOST_FIELD
- See Also:
-
PORT_FIELD
- See Also:
-
-
Constructor Details
-
OracleURLParser
-
-
Method Details
-
fetchDatabaseHostsIndexRange
Description copied from class:AbstractURLParserFetch the index range that database host and port from connection url.- Specified by:
fetchDatabaseHostsIndexRangein classAbstractURLParser- Returns:
- index range that database hosts.
-
fetchDatabaseNameIndexRange
Description copied from class:AbstractURLParserFetch the index range that database name from connection url.- Specified by:
fetchDatabaseNameIndexRangein classAbstractURLParser- Returns:
- index range that database name.
-
parse
Description copied from interface:ConnectionURLParserConnectionURLParserparses database name and the database host(s) from connection url.- Returns:
- connection info.
-
fetchDatabaseNameFromURL
Description copied from class:AbstractURLParserFetch database name from connection url.- Overrides:
fetchDatabaseNameFromURLin classAbstractURLParser- Returns:
- database name.
-