You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by vi...@apache.org on 2016/03/30 01:19:41 UTC

[5/6] mesos git commit: Removed un-needed methods from command scheduler.

Removed un-needed methods from command scheduler.

This change cleans up the unused scheduler driver methods
that would not be needed after moving to the scheduler library.

This review mainly eases reviewing later in the chain and can't
be committed separately.

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


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

Branch: refs/heads/master
Commit: 85a6d0c92d8af36660809f3da93757f1e4378c26
Parents: 48317b3
Author: Anand Mazumdar <ma...@gmail.com>
Authored: Tue Mar 29 16:18:58 2016 -0700
Committer: Vinod Kone <vi...@gmail.com>
Committed: Tue Mar 29 16:18:58 2016 -0700

----------------------------------------------------------------------
 src/cli/execute.cpp | 40 ----------------------------------------
 1 file changed, 40 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/85a6d0c9/src/cli/execute.cpp
----------------------------------------------------------------------
diff --git a/src/cli/execute.cpp b/src/cli/execute.cpp
index f29e3e4..b28843c 100644
--- a/src/cli/execute.cpp
+++ b/src/cli/execute.cpp
@@ -165,22 +165,6 @@ public:
 
   virtual ~CommandScheduler() {}
 
-  virtual void registered(
-      SchedulerDriver* _driver,
-      const FrameworkID& _frameworkId,
-      const MasterInfo& _masterInfo) {
-    cout << "Framework registered with " << _frameworkId << endl;
-  }
-
-  virtual void reregistered(
-      SchedulerDriver* _driver,
-      const MasterInfo& _masterInfo) {
-    cout << "Framework re-registered" << endl;
-  }
-
-  virtual void disconnected(
-      SchedulerDriver* driver) {}
-
   virtual void resourceOffers(
       SchedulerDriver* driver,
       const vector<Offer>& offers)
@@ -276,10 +260,6 @@ public:
     }
   }
 
-  virtual void offerRescinded(
-      SchedulerDriver* driver,
-      const OfferID& offerId) {}
-
   virtual void statusUpdate(
       SchedulerDriver* driver,
       const TaskStatus& status)
@@ -292,26 +272,6 @@ public:
     }
   }
 
-  virtual void frameworkMessage(
-      SchedulerDriver* driver,
-      const ExecutorID& executorId,
-      const SlaveID& slaveId,
-      const string& data) {}
-
-  virtual void slaveLost(
-      SchedulerDriver* driver,
-      const SlaveID& sid) {}
-
-  virtual void executorLost(
-      SchedulerDriver* driver,
-      const ExecutorID& executorID,
-      const SlaveID& slaveID,
-      int status) {}
-
-  virtual void error(
-      SchedulerDriver* driver,
-      const string& message) {}
-
 private:
   const string name;
   bool shell;