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

Method sendUpdateFramework

src/sched/sched.cpp:1725–1743  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1723 }
1724
1725 void sendUpdateFramework()
1726 {
1727 Call call;
1728
1729 CHECK(framework.has_id());
1730 *call.mutable_framework_id() = framework.id();
1731
1732 call.set_type(Call::UPDATE_FRAMEWORK);
1733 Call::UpdateFramework* updateFramework = call.mutable_update_framework();
1734 *updateFramework->mutable_framework_info() = framework;
1735 *updateFramework->mutable_offer_constraints() = offerConstraints;
1736 *updateFramework->mutable_suppressed_roles() =
1737 RepeatedPtrField<string>(suppressedRoles.begin(), suppressedRoles.end());
1738
1739 VLOG(1) << "Sending UPDATE_FRAMEWORK message";
1740
1741 CHECK_SOME(master);
1742 send(master->pid(), call);
1743 }
1744
1745
1746 MesosSchedulerDriver* driver;

Callers

nothing calls this directly

Calls 5

sendFunction · 0.50
idMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
pidMethod · 0.45

Tested by

no test coverage detected