| 381 | } |
| 382 | |
| 383 | void Server::GetSchedulerPolicy(const httplib::Request &, httplib::Response &res) |
| 384 | { |
| 385 | XPolicyType type = scheduler_->GetPolicy(); |
| 386 | Json::Value response(Json::objectValue); |
| 387 | response["policy"] = (Json::Int)type; |
| 388 | res.set_content(Json::writeString(json_writer_, response).c_str(), "application/json"); |
| 389 | } |
| 390 | |
| 391 | void Server::PostSchedulerPolicy(const httplib::Request &req, httplib::Response &res, const httplib::ContentReader &) |
| 392 | { |