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/09 13:06:27 UTC

mesos git commit: Added fields for resource provider actions.

Repository: mesos
Updated Branches:
  refs/heads/master 7af95097f -> 2108836fc


Added fields for resource provider actions.

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


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

Branch: refs/heads/master
Commit: 2108836fcd5ce25d2a810d470fb2f73f3d6d4b7e
Parents: 7af9509
Author: Jan Schlicht <ja...@mesosphere.io>
Authored: Tue May 9 14:58:10 2017 +0200
Committer: Jie Yu <yu...@gmail.com>
Committed: Tue May 9 14:58:10 2017 +0200

----------------------------------------------------------------------
 .../mesos/resource_provider/resource_provider.proto    | 13 +++++++++++++
 .../mesos/v1/resource_provider/resource_provider.proto | 13 +++++++++++++
 2 files changed, 26 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/2108836f/include/mesos/resource_provider/resource_provider.proto
----------------------------------------------------------------------
diff --git a/include/mesos/resource_provider/resource_provider.proto b/include/mesos/resource_provider/resource_provider.proto
index 0efef33..11d01df 100644
--- a/include/mesos/resource_provider/resource_provider.proto
+++ b/include/mesos/resource_provider/resource_provider.proto
@@ -16,6 +16,8 @@
 
 syntax = "proto2";
 
+import "mesos/mesos.proto";
+
 package mesos.resource_provider;
 
 option java_package = "org.apache.mesos.resource_provider";
@@ -37,11 +39,13 @@ message Event {
   // First event received by the resource provider when it subscribes
   // to the master.
   message Subscribed {
+    required ResourceProviderID provider_id = 1;
   }
 
   // Received when the master wants to send an operation to the
   // resource provider.
   message Operation {
+    optional Offer.Operation operation = 1;
   }
 
   optional Type type = 1;
@@ -64,10 +68,19 @@ message Call {
 
   // Request to subscribe with the master.
   message Subscribe {
+    required ResourceProviderInfo resource_provider_info = 1;
   }
 
   // Notify the master about the status of an operation.
   message Update {
+    enum State {
+      OK = 1;
+      FAILED = 2;
+    }
+
+    required State state = 1;
+    required Offer.Operation operation = 2;
+    repeated Resource converted_resources = 3;
   }
 
   optional Type type = 1;

http://git-wip-us.apache.org/repos/asf/mesos/blob/2108836f/include/mesos/v1/resource_provider/resource_provider.proto
----------------------------------------------------------------------
diff --git a/include/mesos/v1/resource_provider/resource_provider.proto b/include/mesos/v1/resource_provider/resource_provider.proto
index 82e6741..97a85ce 100644
--- a/include/mesos/v1/resource_provider/resource_provider.proto
+++ b/include/mesos/v1/resource_provider/resource_provider.proto
@@ -16,6 +16,8 @@
 
 syntax = "proto2";
 
+import "mesos/v1/mesos.proto";
+
 package mesos.v1.resource_provider;
 
 option java_package = "org.apache.mesos.v1.resource_provider";
@@ -37,11 +39,13 @@ message Event {
   // First event received by the resource provider when it subscribes
   // to the master.
   message Subscribed {
+    required ResourceProviderID provider_id = 1;
   }
 
   // Received when the master wants to send an operation to the
   // resource provider.
   message Operation {
+    optional Offer.Operation operation = 1;
   }
 
   optional Type type = 1;
@@ -64,10 +68,19 @@ message Call {
 
   // Request to subscribe with the master.
   message Subscribe {
+    required ResourceProviderInfo resource_provider_info = 1;
   }
 
   // Notify the master about the status of an operation.
   message Update {
+    enum State {
+      OK = 1;
+      FAILED = 2;
+    }
+
+    required State state = 1;
+    required Offer.Operation operation = 2;
+    repeated Resource converted_resources = 3;
   }
 
   optional Type type = 1;