Class AbstractURLParser
java.lang.Object
org.apache.skywalking.apm.plugin.jdbc.connectionurl.parser.AbstractURLParser
- All Implemented Interfaces:
ConnectionURLParser
- Direct Known Subclasses:
H2URLParser,ImpalaJdbcURLParser,MssqlJdbcURLParser,MssqlJtdsURLParser,MysqlURLParser,OracleURLParser,PostgreSQLURLParser
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringFetch database host(s) from connection url.protected abstract URLLocationFetch the index range that database host and port from connection url.protected StringFetch database name from connection url.protected StringfetchDatabaseNameFromURL(int[] indexRange) Fetch database name from connection url.protected abstract URLLocationFetch the index range that database name from connection url.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.skywalking.apm.plugin.jdbc.connectionurl.parser.ConnectionURLParser
parse
-
Field Details
-
url
-
-
Constructor Details
-
AbstractURLParser
-
-
Method Details
-
fetchDatabaseHostsIndexRange
Fetch the index range that database host and port from connection url.- Returns:
- index range that database hosts.
-
fetchDatabaseNameIndexRange
Fetch the index range that database name from connection url.- Returns:
- index range that database name.
-
fetchDatabaseHostsFromURL
Fetch database host(s) from connection url.- Returns:
- database host(s).
-
fetchDatabaseNameFromURL
Fetch database name from connection url.- Returns:
- database name.
-
fetchDatabaseNameFromURL
Fetch database name from connection url.- Returns:
- database name.
-