public interface JdbcUrlParser
Modifier and Type | Method and Description |
---|---|
String |
getUrl(String hostname,
String port,
String instance)
Returns the JDBC URL for this DB config.
|
DatabaseInstance |
parseUrl(String jdbcUrl) |
DatabaseInstance parseUrl(String jdbcUrl) throws ParseException
ParseException
String getUrl(String hostname, String port, String instance) throws ParseException
hostname
- the hostnameport
- the TCP/IP port numberinstance
- the DB "instance"ValidationException
- If the underlying configuration is invalid for this DB type. eg for Postgres, "Database" (instance) is a required fieldParseException
Copyright © 2002-2016 Atlassian. All Rights Reserved.