public interface

JdbcUrlParser

com.atlassian.jira.config.database.jdbcurlparser.JdbcUrlParser
Known Indirect Subclasses

Class Overview

Implementations of this interface provide DB-specific JDBC url parsing.

Summary

Public Methods
String getUrl(String hostname, String port, String instance)
Returns the JDBC URL for this DB config.
DatabaseInstance parseUrl(String jdbcUrl)

Public Methods

public String getUrl (String hostname, String port, String instance)

Returns the JDBC URL for this DB config.

Parameters
hostname the hostname
port the TCP/IP port number
instance the DB "instance"
Returns
  • the JDBC URL for this DB config.
Throws
If the underlying configuration is invalid for this DB type. eg for Postgres, "Database" (instance) is a required field
ParseException

public DatabaseInstance parseUrl (String jdbcUrl)