public class MysqlURLParser extends AbstractURLParser
MysqlURLParser parse connection url of mysql.url| 构造器和说明 |
|---|
MysqlURLParser(String url) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected URLLocation |
fetchDatabaseHostsIndexRange()
Fetch the index range that database host and port from connection url.
|
protected String |
fetchDatabaseNameFromURL(int startSize) |
protected URLLocation |
fetchDatabaseNameIndexRange()
Fetch the index range that database name from connection url.
|
protected URLLocation |
fetchDatabaseNameIndexRange(int startSize) |
ConnectionInfo |
parse()
ConnectionURLParser parses database name and the database host(s) from connection url. |
fetchDatabaseHostsFromURL, fetchDatabaseNameFromURL, fetchDatabaseNameFromURLpublic MysqlURLParser(String url)
protected URLLocation fetchDatabaseHostsIndexRange()
AbstractURLParserfetchDatabaseHostsIndexRange 在类中 AbstractURLParserprotected String fetchDatabaseNameFromURL(int startSize)
protected URLLocation fetchDatabaseNameIndexRange(int startSize)
protected URLLocation fetchDatabaseNameIndexRange()
AbstractURLParserfetchDatabaseNameIndexRange 在类中 AbstractURLParserpublic ConnectionInfo parse()
ConnectionURLParserConnectionURLParser parses database name and the database host(s) from connection url.Copyright © 2018 The Apache Software Foundation. All rights reserved.