1 #ifndef NoXmlTreeReader
17 #ifndef StDbServiceBroker_h
18 #define StDbServiceBroker_h
22 #include "StlXmlTree.h"
23 #include "ChapiDbHost.h"
27 namespace st_db_service_broker {
28 const std::string MyScatalogVersion =
"version=1.0.1;";
29 const short NightEnds = 8;
30 const short NightBegins = 22;
31 const short DayBegins = NightEnds;
32 const short DayEnds = NightBegins;
64 std::vector<ChapiDbHost> MyHostList;
65 std::vector<ChapiDbHost>::const_iterator MyBestHost;
69 void SendEmail(time_t timediff);
71 time_t last_succeeded_connect_time = 0;
72 time_t seconds_to_reach_for_connect = 1800;
80 void DoLoadBalancing();
82 std::string GiveHostName();
86 inline short GetStatus(){
return MyStatus;};
87 static int updateLocalLbPolicy();