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

Method updateOperationStatus

src/resource_provider/manager.cpp:933–962  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

931
932
933void ResourceProviderManagerProcess::updateOperationStatus(
934 ResourceProvider* resourceProvider,
935 const Call::UpdateOperationStatus& update)
936{
937 CHECK_EQ(update.status().resource_provider_id(), resourceProvider->info.id());
938
939 Option<FrameworkID> frameworkId;
940 if (update.has_framework_id()) {
941 frameworkId = update.framework_id();
942 }
943
944 Option<OperationStatus> latestStatus;
945 if (update.has_latest_status()) {
946 CHECK_EQ(
947 update.latest_status().resource_provider_id(),
948 resourceProvider->info.id());
949
950 latestStatus = update.latest_status();
951 }
952
953 Try<id::UUID> uuid = id::UUID::fromBytes(update.operation_uuid().value());
954 CHECK_SOME(uuid);
955
956 messages.put(
957 createUpdateOperationStatus(
958 update.status(),
959 uuid.get(),
960 frameworkId,
961 latestStatus));
962}
963
964
965ResourceProviderMessage

Callers 1

apiMethod · 0.95

Calls 5

statusMethod · 0.45
idMethod · 0.45
valueMethod · 0.45
putMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected