public class H2URLParser extends AbstractURLParser
H2URLParser presents that skywalking how to parse the connection url of H2 database.
H2URLParser check the connection url if contains "file" or "mem". if yes. the database name substring the
connection url from the index after "file" index or the "mem" index to the index of first charset ";".
url| Constructor and Description |
|---|
H2URLParser(String url) |
| Modifier and Type | Method and Description |
|---|---|
protected URLLocation |
fetchDatabaseHostsIndexRange()
Fetch the index range that database host and port from connection url.
|
protected URLLocation |
fetchDatabaseNameIndexRange()
Fetch the index range that database name from connection url.
|
ConnectionInfo |
parse()
ConnectionURLParser parses database name and the database host(s) from connection url. |
fetchDatabaseHostsFromURL, fetchDatabaseNameFromURL, fetchDatabaseNameFromURLpublic H2URLParser(String url)
protected URLLocation fetchDatabaseHostsIndexRange()
AbstractURLParserfetchDatabaseHostsIndexRange in class AbstractURLParserprotected URLLocation fetchDatabaseNameIndexRange()
AbstractURLParserfetchDatabaseNameIndexRange in class AbstractURLParserpublic ConnectionInfo parse()
ConnectionURLParserConnectionURLParser parses database name and the database host(s) from connection url.Copyright © 2020 The Apache Software Foundation. All rights reserved.