Skip to content
Snippets Groups Projects
Commit beb4c7e5 authored by Jan David Mol's avatar Jan David Mol
Browse files

ROHD-1732: Use dedicated db config for FeedbackService. Backported r42792 from LOFAR-Release-4_0.

parent 776954b0
No related branches found
No related tags found
1 merge request!6Import cobalt2 into lofar4
...@@ -122,7 +122,7 @@ GCFEvent::TResult Feedback::connect2OTDB_state(GCFEvent& event, GCFPortInterface ...@@ -122,7 +122,7 @@ GCFEvent::TResult Feedback::connect2OTDB_state(GCFEvent& event, GCFPortInterface
case F_ENTRY: case F_ENTRY:
case F_TIMER: { case F_TIMER: {
// Try to setup the connection with the database // Try to setup the connection with the database
string confFile = globalParameterSet()->getString("OTDBconfFile", "SASGateway.conf"); string confFile = globalParameterSet()->getString("OTDBconfFile", "FeedbackService.conf");
ConfigLocator CL; ConfigLocator CL;
string filename = CL.locate(confFile); string filename = CL.locate(confFile);
LOG_DEBUG_STR("Trying to read database information from file " << filename); LOG_DEBUG_STR("Trying to read database information from file " << filename);
...@@ -131,7 +131,7 @@ GCFEvent::TResult Feedback::connect2OTDB_state(GCFEvent& event, GCFPortInterface ...@@ -131,7 +131,7 @@ GCFEvent::TResult Feedback::connect2OTDB_state(GCFEvent& event, GCFPortInterface
string database; string database;
try try
{ {
database = otdbconf.getString("SASGateway.OTDBdatabase"); database = otdbconf.getString("FeedbackService.OTDBdatabase");
} }
catch(LOFAR::APSException& ex) catch(LOFAR::APSException& ex)
{ {
...@@ -143,7 +143,7 @@ GCFEvent::TResult Feedback::connect2OTDB_state(GCFEvent& event, GCFPortInterface ...@@ -143,7 +143,7 @@ GCFEvent::TResult Feedback::connect2OTDB_state(GCFEvent& event, GCFPortInterface
string dbhost; string dbhost;
try try
{ {
dbhost = otdbconf.getString("SASGateway.OTDBhostname"); dbhost = otdbconf.getString("FeedbackService.OTDBhostname");
} }
catch(LOFAR::APSException& ex) catch(LOFAR::APSException& ex)
{ {
...@@ -155,7 +155,7 @@ GCFEvent::TResult Feedback::connect2OTDB_state(GCFEvent& event, GCFPortInterface ...@@ -155,7 +155,7 @@ GCFEvent::TResult Feedback::connect2OTDB_state(GCFEvent& event, GCFPortInterface
string username; string username;
try try
{ {
username = otdbconf.getString("SASGateway.OTDBusername"); username = otdbconf.getString("FeedbackService.OTDBusername");
} }
catch(LOFAR::APSException& ex) catch(LOFAR::APSException& ex)
{ {
...@@ -167,7 +167,7 @@ GCFEvent::TResult Feedback::connect2OTDB_state(GCFEvent& event, GCFPortInterface ...@@ -167,7 +167,7 @@ GCFEvent::TResult Feedback::connect2OTDB_state(GCFEvent& event, GCFPortInterface
string password; string password;
try try
{ {
password = otdbconf.getString("SASGateway.OTDBpassword"); password = otdbconf.getString("FeedbackService.OTDBpassword");
} }
catch(LOFAR::APSException& ex) catch(LOFAR::APSException& ex)
{ {
...@@ -179,7 +179,7 @@ GCFEvent::TResult Feedback::connect2OTDB_state(GCFEvent& event, GCFPortInterface ...@@ -179,7 +179,7 @@ GCFEvent::TResult Feedback::connect2OTDB_state(GCFEvent& event, GCFPortInterface
string port; string port;
try try
{ {
port = otdbconf.getString("SASGateway.OTDBport"); port = otdbconf.getString("FeedbackService.OTDBport");
} }
catch(LOFAR::APSException& ex) catch(LOFAR::APSException& ex)
{ {
......
...@@ -5,3 +5,6 @@ ...@@ -5,3 +5,6 @@
# #
FeedbackQueuenames = [ "otdb.task.feedback.dataproducts" , "otdb.task.feedback.processing" ] FeedbackQueuenames = [ "otdb.task.feedback.dataproducts" , "otdb.task.feedback.processing" ]
FeedbackService.OTDBdatabase = LOFAR_4
FeedbackService.OTDBhostname = sasdb
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment