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/05/31 21:51:19 UTC

[05/16] mesos git commit: Reordered some method definitions in `Slave` class.

Reordered some method definitions in `Slave` class.

Moved all the metrics related continuation methods close to each other
so it's more consistent.

Review: https://reviews.apache.org/r/59660


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/7ba736ae
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/7ba736ae
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/7ba736ae

Branch: refs/heads/master
Commit: 7ba736ae7c08cfe293bcb2298645b3c1248f3cc2
Parents: b90ba2b
Author: Jie Yu <yu...@gmail.com>
Authored: Tue May 30 14:30:23 2017 -0700
Committer: Jie Yu <yu...@gmail.com>
Committed: Wed May 31 14:51:10 2017 -0700

----------------------------------------------------------------------
 src/slave/slave.hpp | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/7ba736ae/src/slave/slave.hpp
----------------------------------------------------------------------
diff --git a/src/slave/slave.hpp b/src/slave/slave.hpp
index 2a62eff..4e7c6be 100644
--- a/src/slave/slave.hpp
+++ b/src/slave/slave.hpp
@@ -534,6 +534,14 @@ private:
 
   double _executor_directory_max_allowed_age_secs();
 
+  double _resources_total(const std::string& name);
+  double _resources_used(const std::string& name);
+  double _resources_percent(const std::string& name);
+
+  double _resources_revocable_total(const std::string& name);
+  double _resources_revocable_used(const std::string& name);
+  double _resources_revocable_percent(const std::string& name);
+
   void sendExecutorTerminatedStatusUpdate(
       const TaskID& taskId,
       const process::Future<Option<
@@ -573,14 +581,6 @@ private:
 
   Metrics metrics;
 
-  double _resources_total(const std::string& name);
-  double _resources_used(const std::string& name);
-  double _resources_percent(const std::string& name);
-
-  double _resources_revocable_total(const std::string& name);
-  double _resources_revocable_used(const std::string& name);
-  double _resources_revocable_percent(const std::string& name);
-
   process::Time startTime;
 
   GarbageCollector* gc;