MCPcopy Create free account
hub / github.com/apache/mesos / createCallAcknowledgeOperationStatus

Function createCallAcknowledgeOperationStatus

src/tests/mesos.hpp:2395–2417  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2393
2394
2395inline 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
2420inline mesos::v1::scheduler::Call createCallKill(

Callers 4

TEST_FFunction · 0.85
TEST_FFunction · 0.85
TEST_PFunction · 0.85
TEST_PFunction · 0.85

Calls 5

CopyFromMethod · 0.80
isSomeMethod · 0.45
getMethod · 0.45
valueMethod · 0.45
statusMethod · 0.45

Tested by

no test coverage detected