21 {
22
23
25
27 const char* chost=
getenv(
"ATLAS_CONDDB");
29 }
30
32 const char* chost=
getenv(
"HOSTNAME");
34
37 << " has no domain - try hostname --fqdn");
39#ifndef __APPLE__
40 system("hostname --fqdn > hostnamelookup.tmp");
41#else
42
43 system("hostname > hostnamelookup.tmp");
44#endif
46 infile.open(
"hostnamelookup.tmp");
47 if (infile) {
50 } else {
52 }
53 }
54 }
55
56 const char* cfrontier=
getenv(
"FRONTIER_SERVER");
59 << " will be considered for COOL data");
61 }
66 ATH_MSG_INFO (
"COOL SQLite replicas will be excluded if matching pattern "
68 }
70 ATH_MSG_INFO (
"COOL Frontier replicas will be excluded");
72 ATH_MSG_INFO (
"Geometry SQLite replicas will be excluded");
74 ATH_MSG_INFO (
"Failover to secondary replicas disabled");
75
76
80 return (StatusCode::FAILURE);
81 }
82
83 coral::ConnectionService conSvcH;
84 coral::IConnectionServiceConfiguration& csConfig = conSvcH.configuration();
85 csConfig.setReplicaSortingAlgorithm(*this);
86 ATH_MSG_DEBUG(
"Successfully setup replica sorting algorithm");
87
91 csConfig.enablePoolAutomaticCleanUp();
93 } else {
94 csConfig.disablePoolAutomaticCleanUp();
95 csConfig.setConnectionTimeOut(0);
96 }
98 << " seconds with connection cleanup "
99 << (csConfig.isPoolAutomaticCleanUpEnabled() ? "enabled" : "disabled"));
100
101 coral::IWebCacheControl& webCache = conSvcH.webCacheControl();
103 ATH_MSG_INFO(
"Frontier compression level set to " << webCache.compressionLevel());
104
106}
Gaudi::Property< int > m_retrialTimeOut
ConnectionRetrialTimeOut, the retrial time out for CORAL Connection Service: default = 300 seconds.
Gaudi::Property< bool > m_connClean
ConnectionCleanUp - whether to use CORAL connection management thread: default = false.
Gaudi::Property< std::string > m_testhost
Gaudi::Property< bool > m_usegeomsqlite
coral::Context * m_context
Gaudi::Property< int > m_timeOut
ConnectionTimeOut, the time out for CORAL Connection Service: default = 5 seconds.
Gaudi::Property< int > m_frontierComp
Frontier proprties, compression level and list of schemas to be refreshed: default = 5.
Gaudi::Property< int > m_retrialPeriod
ConnectionRetrialPeriod, retry period for CORAL Connection Service: default = 30 seconds.
Gaudi::Property< bool > m_usecoolsqlite
Gaudi::Property< bool > m_nofailover
Gaudi::Property< std::string > m_coolsqlitepattern
Gaudi::Property< bool > m_usecoolfrontier
::StatusCode StatusCode
StatusCode definition for legacy code.
std::string getenv(const std::string &variableName)
get an environment variable