Constructor and Description |
---|
ConnectionPrefs(Config host,
Config user,
Config pass,
Config database,
Config port)
Class constructor.
|
ConnectionPrefs(String host,
String user,
String pass,
String database,
String port)
Class constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getDatabase()
Returns the database to use in the MySQL cluster
|
String |
getHost()
Returns the host in use by these
MySQL.ConnectionPrefs |
String |
getPass()
Returns the password to use when connecting with the user.
|
String |
getPort()
Returns the port to use for the MySQL connection.
|
String |
getUser()
Returns the username to use when connecting
|
public ConnectionPrefs(String host, String user, String pass, String database, String port)
host
- The host name for this MySQL connectionuser
- The user to utilize when connectingpass
- The password for the userdatabase
- The database to use in the clusterport
- The port of the databasepublic ConnectionPrefs(Config host, Config user, Config pass, Config database, Config port)
Configs
that are string-types
(The port
parameter can be an int or string) and retrieves
the appropriate values for themhost
- The host name for this MySQL connectionuser
- The user to utilize when connectingpass
- The password for the userdatabase
- The database to use in the clusterport
- The port of the databasepublic String getHost()
MySQL.ConnectionPrefs
public String getUser()
public String getPass()
public String getDatabase()
public String getPort()
Copyright © 2015. All rights reserved.