| 94 | } |
| 95 | |
| 96 | void ServerImpl::BuildBasicService() { |
| 97 | if (in_memory_service_) { |
| 98 | in_memory_service_->Build(); |
| 99 | } |
| 100 | if (dist_service_) { |
| 101 | Status s = dist_service_->Build(); |
| 102 | if (!s.ok()) { |
| 103 | USER_LOG("Server build failed and exit now."); |
| 104 | USER_LOG(s.ToString()); |
| 105 | LOG(FATAL) << "DistributeService build failed: " << s.ToString(); |
| 106 | ::exit(-1); |
| 107 | } |
| 108 | } |
| 109 | } |
| 110 | |
| 111 | void ServerImpl::StopBasicService() { |
| 112 | if (in_memory_service_) { |