summaryrefslogtreecommitdiff
path: root/server/src/configurationparser.cc
diff options
context:
space:
mode:
authordeva <deva>2010-01-06 07:47:58 +0000
committerdeva <deva>2010-01-06 07:47:58 +0000
commit0e819eb42b4d680a99ae7b04702bfc9510495aee (patch)
treea425aeb98c679a0891a974b6f93090343d51a4e8 /server/src/configurationparser.cc
parent582913fc18937c87afe7d351e66095dccb435a9e (diff)
New artefact connection class (to later wrap libartefact). New environment class to hold all global resources. Made ConnectionPool a template class. Split journal code up into two files (class from commit code).
Diffstat (limited to 'server/src/configurationparser.cc')
-rw-r--r--server/src/configurationparser.cc20
1 files changed, 16 insertions, 4 deletions
diff --git a/server/src/configurationparser.cc b/server/src/configurationparser.cc
index 551e8da..d16920f 100644
--- a/server/src/configurationparser.cc
+++ b/server/src/configurationparser.cc
@@ -93,14 +93,20 @@ void ConfigurationParser::reload()
}
try {
- std::string a = lookup("pentominos_addr");
- Conf::pentominos_addr = a;
+ std::string s = lookup("artefact_addr");
+ Conf::artefact_addr = s;
} catch( ... ) {
}
try {
- int p = lookup("pentominos_port");
- Conf::pentominos_port = p;
+ int i = lookup("artefact_port");
+ Conf::artefact_port = i;
+ } catch( ... ) {
+ }
+
+ try {
+ int i = lookup("artefact_poolsize");
+ Conf::artefact_poolsize = i;
} catch( ... ) {
}
@@ -129,6 +135,12 @@ void ConfigurationParser::reload()
}
try {
+ int i = lookup("database_poolsize");
+ Conf::database_poolsize = i;
+ } catch( ... ) {
+ }
+
+ try {
std::string p = lookup("xml_basedir");
Conf::xml_basedir = p;
} catch( ... ) {