Class MysqlURLParser
java.lang.Object
org.apache.skywalking.apm.plugin.jdbc.connectionurl.parser.AbstractURLParser
org.apache.skywalking.apm.plugin.jdbc.connectionurl.parser.MysqlURLParser
- All Implemented Interfaces:
ConnectionURLParser
- Direct Known Subclasses:
ClickHouseURLParser,KylinJdbcURLParser,MariadbURLParser
MysqlURLParser parse connection url of mysql.-
Field Summary
Fields inherited from class org.apache.skywalking.apm.plugin.jdbc.connectionurl.parser.AbstractURLParser
url -
Constructor Summary
ConstructorsConstructorDescriptionMysqlURLParser(String url) MysqlURLParser(String url, String dbType, org.apache.skywalking.apm.network.trace.component.OfficialComponent component) MysqlURLParser(String url, String dbType, org.apache.skywalking.apm.network.trace.component.OfficialComponent component, int defaultPort) -
Method Summary
Modifier and TypeMethodDescriptionprotected URLLocationFetch the index range that database host and port from connection url.protected StringfetchDatabaseNameFromURL(int startSize) protected URLLocationFetch the index range that database name from connection url.protected URLLocationfetchDatabaseNameIndexRange(int startSize) 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, fetchDatabaseNameFromURL
-
Constructor Details
-
MysqlURLParser
-
MysqlURLParser
-
MysqlURLParser
-
-
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.
-
fetchDatabaseNameFromURL
-
fetchDatabaseNameIndexRange
-
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.
-