redis added to the config handler
parent
888e7f5870
commit
8e944a55e5
|
@ -27,6 +27,9 @@ public class ConfigHandler {
|
|||
private String mongodbUsername;
|
||||
private String mongodbPassword;
|
||||
|
||||
private String redisHost;
|
||||
private String redisPort;
|
||||
|
||||
public void load() throws IOException, InvalidConfigurationException {
|
||||
File file = new File(defaultConfigPath, "kraSettings.yaml");
|
||||
|
||||
|
@ -47,5 +50,8 @@ public class ConfigHandler {
|
|||
mongodbDatabase = fileConfiguration.getString("mongodb.database");
|
||||
mongodbUsername = fileConfiguration.getString("mongodb.username");
|
||||
mongodbPassword = fileConfiguration.getString("mongodb.password");
|
||||
|
||||
redisHost = fileConfiguration.getString("redis.host");
|
||||
redisPort = fileConfiguration.getString("redis.port");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue