com.atlassian.jira.config.database.jdbcurlparser
Class MySqlUrlParser

java.lang.Object
  extended by com.atlassian.jira.config.database.jdbcurlparser.MySqlUrlParser
All Implemented Interfaces:
JdbcUrlParser

public class MySqlUrlParser
extends Object
implements JdbcUrlParser


Constructor Summary
MySqlUrlParser()
           
 
Method Summary
 String getUrl(String hostname, String port, String instance)
          Returns the JDBC URL for this DB config.
 DatabaseInstance parseUrl(String jdbcUrl)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MySqlUrlParser

public MySqlUrlParser()
Method Detail

getUrl

public String getUrl(String hostname,
                     String port,
                     String instance)
Description copied from interface: JdbcUrlParser
Returns the JDBC URL for this DB config.

Specified by:
getUrl in interface JdbcUrlParser
Parameters:
hostname - the hostname
port - the TCP/IP port number
instance - the DB "instance"
Returns:
the JDBC URL for this DB config.

parseUrl

public DatabaseInstance parseUrl(String jdbcUrl)
                          throws ParseException
Specified by:
parseUrl in interface JdbcUrlParser
Throws:
ParseException


Copyright © 2002-2014 Atlassian. All Rights Reserved.