public class ConfigParser extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ConfigParser.TnsFileInfo |
| Constructor and Description |
|---|
ConfigParser() |
| Modifier and Type | Method and Description |
|---|---|
static LoadBalanceInfo |
getGloabalLoadBalanceInfo(UrlParser urlParser)
Obtain the current LoadBalance configuration information in different ways, add other
mechanisms here
|
static ConcurrentHashMap<String,LoadBalanceInfo> |
getLoadBalanceInfosFromReader(Reader reader) |
static String |
getNetServiceName(String extendDescription) |
static ConfigParser.TnsFileInfo |
getTnsFilePath()
Get current config information
|
public static ConcurrentHashMap<String,LoadBalanceInfo> getLoadBalanceInfosFromReader(Reader reader) throws IOException
IOExceptionpublic static ConfigParser.TnsFileInfo getTnsFilePath() throws SQLException
SQLExceptionpublic static LoadBalanceInfo getGloabalLoadBalanceInfo(UrlParser urlParser) throws SQLException, IOException
urlParser - oceanbase url parser ,get options from hereSQLExceptionIOExceptionpublic static String getNetServiceName(String extendDescription) throws SQLException
SQLExceptionCopyright © 2022 oceanbase.com. All rights reserved.