You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by ji...@apache.org on 2017/10/30 15:19:00 UTC
[14/15] mesos git commit: Added the stub for
OfferOperationStatusUpdate handler in the master.
Added the stub for OfferOperationStatusUpdate handler in the master.
Review: https://reviews.apache.org/r/63358
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/28567087
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/28567087
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/28567087
Branch: refs/heads/master
Commit: 285670879253ec0fff09ae80aebccc472506bd21
Parents: a98a060
Author: Jie Yu <yu...@gmail.com>
Authored: Fri Oct 27 12:12:39 2017 +0200
Committer: Jie Yu <yu...@gmail.com>
Committed: Mon Oct 30 16:18:31 2017 +0100
----------------------------------------------------------------------
src/master/master.cpp | 10 ++++++++++
src/master/master.hpp | 3 +++
2 files changed, 13 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/28567087/src/master/master.cpp
----------------------------------------------------------------------
diff --git a/src/master/master.cpp b/src/master/master.cpp
index 4b67506..e047462 100644
--- a/src/master/master.cpp
+++ b/src/master/master.cpp
@@ -877,6 +877,9 @@ void Master::initialize()
&ReconcileTasksMessage::framework_id,
&ReconcileTasksMessage::statuses);
+ install<OfferOperationStatusUpdate>(
+ &Master::offerOperationStatusUpdate);
+
install<ExitedExecutorMessage>(
&Master::exitedExecutor,
&ExitedExecutorMessage::slave_id,
@@ -7226,6 +7229,13 @@ void Master::forward(
}
+void Master::offerOperationStatusUpdate(
+ const OfferOperationStatusUpdate& message)
+{
+ // TODO(jieyu): Provide implementation here.
+}
+
+
void Master::exitedExecutor(
const UPID& from,
const SlaveID& slaveId,
http://git-wip-us.apache.org/repos/asf/mesos/blob/28567087/src/master/master.hpp
----------------------------------------------------------------------
diff --git a/src/master/master.hpp b/src/master/master.hpp
index d504f97..76f884c 100644
--- a/src/master/master.hpp
+++ b/src/master/master.hpp
@@ -474,6 +474,9 @@ public:
const FrameworkID& frameworkId,
const std::vector<TaskStatus>& statuses);
+ void offerOperationStatusUpdate(
+ const OfferOperationStatusUpdate& message);
+
void exitedExecutor(
const process::UPID& from,
const SlaveID& slaveId,