blob: 19fe9bc6f6a7c34b0cf608e9ecbae22e49282957 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
package uk.org.ury.config;
/**
* A Database Server configuration
*
* @author Nathan Lasseter
*/
public class Database {
private String host;
private int port;
private String db;
/**
* Get the hostname of the database server
*
* @return String hostname
*/
public String getHost() { return host; }
/**
* Get the port the database server is running on
*
* @return int port
*/
public int getPort() { return port; }
/**
* Get the name of the database
*
* @return String database name
*/
public String getDb() { return db; }
/**
* Create a database object
* @param host The hostname of the database server
* @param port The port that the database server listens on
* @param db The name of the database on the server
*/
public Database(String host, int port, String db) {
this.host = host;
this.port = port;
this.db = db;
}
}
|