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 2015/05/21 23:13:35 UTC

[2/2] mesos git commit: Added 'capabilities' field to FrameworkInfo.

Added 'capabilities' field to FrameworkInfo.

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


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

Branch: refs/heads/master
Commit: 0dd0a56968d8971b3db6af838ba8d292342dda95
Parents: 83950ed
Author: Vinod Kone <vi...@gmail.com>
Authored: Fri May 15 17:20:16 2015 -0700
Committer: Vinod Kone <vi...@gmail.com>
Committed: Thu May 21 14:11:26 2015 -0700

----------------------------------------------------------------------
 include/mesos/mesos.proto | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/0dd0a569/include/mesos/mesos.proto
----------------------------------------------------------------------
diff --git a/include/mesos/mesos.proto b/include/mesos/mesos.proto
index dd3b5dd..a668889 100644
--- a/include/mesos/mesos.proto
+++ b/include/mesos/mesos.proto
@@ -141,6 +141,22 @@ message FrameworkInfo {
   // the Mesos web UI can link to it. It is expected to be a full URL,
   // for example http://my-scheduler.example.com:8080/.
   optional string webui_url = 9;
+
+  message Capability {
+    enum Type {
+      // Receive offers with revocable resources. See 'Resource'
+      // message for details.
+      // TODO(vinod): This is currently a no-op.
+      REVOCABLE_RESOURCES = 1;
+    }
+
+    required Type type = 1;
+  }
+
+  // This field allows a framework to advertise its set of
+  // capabilities (e.g., ability to receive offers for revocable
+  // resources).
+  repeated Capability capabilities = 10;
 }