hce-node application  1.4.3
HCE Hierarchical Cluster Engine node application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
DataBaseDriverConfig.cpp
Go to the documentation of this file.
2 
3 #ifdef _USE_VOLDEMORT_DB_
4  std::string HCE::DataBaseDriverConfig::driverName = "VoldemortDB";
5 #elif _USE_LEVEL_DB_
6  std::string HCE::DataBaseDriverConfig::driverName = "LevelDB";
7 #elif _USE_AEROSPIKE_DB_
8  std::string HCE::DataBaseDriverConfig::driverName = "AerospikeDB";
9 #else
10  std::string HCE::DataBaseDriverConfig::driverName = "FakeDB";
11 #endif
12 
14  : _driverName(HCE::DataBaseDriverConfig::driverName)
15  ,_dbName("")
16  ,_dbUrl("")
17  , _writePolicy("sync")
18  , _writeUnique("yes")
19 {}
20 
22 /*
23 
24 void HCE::DataBaseDriverConfig::setDriverName (const std::string& driverName) {
25  this->_driverName = driverName;
26 }
27 
28 void HCE::DataBaseDriverConfig::setDataBaseName (const std::string& dbName) {
29  this->_dbName = dbName;
30 }
31 
32 void HCE::DataBaseDriverConfig::setDataBaseUrl (const std::string& dbUrl) {
33  this->_dbUrl = dbUrl;
34 }
35 std::string HCE::DataBaseDriverConfig::getDriverName () const {
36  return this->_driverName;
37 }
38 
39 std::string HCE::DataBaseDriverConfig::getDataBaseName () const {
40  return this->_dbName;
41 }
42 
43 std::string HCE::DataBaseDriverConfig::getDataBaseUrl () const {
44  return this->_dbUrl;
45 }
46 */