| 53 | } |
| 54 | |
| 55 | comm::RetCode GlobalConfig::ReadConfig(proto::GlobalConfig &proto) { |
| 56 | // sample |
| 57 | proto.Clear(); |
| 58 | |
| 59 | auto topic_info = proto.add_topic_infos(); |
| 60 | topic_info->set_topic_id(1000); |
| 61 | topic_info->set_topic_name("test"); |
| 62 | topic_info->set_topic_config_path(""); |
| 63 | topic_info->set_consumer_config_path(""); |
| 64 | topic_info->set_store_config_path(""); |
| 65 | topic_info->set_scheduler_config_path(""); |
| 66 | topic_info->set_lock_config_path(""); |
| 67 | |
| 68 | return comm::RetCode::RET_OK; |
| 69 | } |
| 70 | |
| 71 | comm::RetCode GlobalConfig::Rebuild() { |
| 72 | impl_->topic_name2topic_id.clear(); |