| 2393 | |
| 2394 | |
| 2395 | inline mesos::v1::scheduler::Call createCallAcknowledgeOperationStatus( |
| 2396 | const mesos::v1::FrameworkID& frameworkId, |
| 2397 | const mesos::v1::AgentID& agentId, |
| 2398 | const Option<mesos::v1::ResourceProviderID>& resourceProviderId, |
| 2399 | const mesos::v1::scheduler::Event::UpdateOperationStatus& update) |
| 2400 | { |
| 2401 | mesos::v1::scheduler::Call call; |
| 2402 | call.set_type(mesos::v1::scheduler::Call::ACKNOWLEDGE_OPERATION_STATUS); |
| 2403 | call.mutable_framework_id()->CopyFrom(frameworkId); |
| 2404 | |
| 2405 | mesos::v1::scheduler::Call::AcknowledgeOperationStatus* acknowledge = |
| 2406 | call.mutable_acknowledge_operation_status(); |
| 2407 | |
| 2408 | acknowledge->mutable_agent_id()->CopyFrom(agentId); |
| 2409 | if (resourceProviderId.isSome()) { |
| 2410 | acknowledge->mutable_resource_provider_id()->CopyFrom( |
| 2411 | resourceProviderId.get()); |
| 2412 | } |
| 2413 | acknowledge->set_uuid(update.status().uuid().value()); |
| 2414 | acknowledge->mutable_operation_id()->CopyFrom(update.status().operation_id()); |
| 2415 | |
| 2416 | return call; |
| 2417 | } |
| 2418 | |
| 2419 | |
| 2420 | inline mesos::v1::scheduler::Call createCallKill( |