| 132 | } |
| 133 | |
| 134 | bool AFCBusModule::LoadRegCenterConfig() |
| 135 | { |
| 136 | // load reg center files |
| 137 | AFXml xml_doc(REG_CENTER_CONFIG_FILE_PATH); |
| 138 | |
| 139 | auto root_node = xml_doc.GetRootNode(); |
| 140 | ARK_ASSERT_RET_VAL(root_node.IsValid(), false); |
| 141 | |
| 142 | auto node = root_node.FindNode("center"); |
| 143 | ARK_ASSERT_RET_VAL(node.IsValid(), false); |
| 144 | |
| 145 | app_config_.reg_center.ip = node.GetString("ip"); |
| 146 | app_config_.reg_center.port = node.GetUint32("port"); |
| 147 | app_config_.reg_center.service_name = node.GetString("service_name"); |
| 148 | app_config_.reg_center.check_interval = node.GetString("check_interval"); |
| 149 | app_config_.reg_center.check_timeout = node.GetString("check_timeout"); |
| 150 | |
| 151 | return true; |
| 152 | } |
| 153 | |
| 154 | const std::string& AFCBusModule::GetAppName(const ARK_APP_TYPE& app_type) |
| 155 | { |
nothing calls this directly
no test coverage detected