Repository: mesos Updated Branches: refs/heads/master f9fe7f47c -> 5756e8527
Added Agent protobuf message. This patch added Agent protobuf message to: 1. v1 message: v1/master/master.proto 2. unversioned message: master/master.proto Review: https://reviews.apache.org/r/48841/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/fb626a29 Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/fb626a29 Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/fb626a29 Branch: refs/heads/master Commit: fb626a29c416e5b28707338064b84a425469e97d Parents: f9fe7f4 Author: zhou xing <xingz...@cn.ibm.com> Authored: Mon Jun 27 23:45:17 2016 -0700 Committer: Vinod Kone <vinodk...@gmail.com> Committed: Mon Jun 27 23:45:17 2016 -0700 ---------------------------------------------------------------------- include/mesos/master/master.proto | 16 +++++++++++++++- include/mesos/v1/master/master.proto | 16 +++++++++++++++- 2 files changed, 30 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/mesos/blob/fb626a29/include/mesos/master/master.proto ---------------------------------------------------------------------- diff --git a/include/mesos/master/master.proto b/include/mesos/master/master.proto index 3322619..f63cc5a 100644 --- a/include/mesos/master/master.proto +++ b/include/mesos/master/master.proto @@ -287,9 +287,23 @@ message Response { message GetAgents { message Agent { - // TODO(vinod): Fill in the fields. + required SlaveInfo agent_info = 1; + required bool active = 2; + required string version = 3; + + optional string pid = 4; + optional TimeInfo registered_time = 5; + optional TimeInfo reregistered_time = 6; + + // Total resources (including oversubscribed resources) the agent + // provides. + repeated Resource total_resources = 7; + + repeated Resource allocated_resources = 8; + repeated Resource offered_resources = 9; } + // Registered agents. repeated Agent agents = 1; } http://git-wip-us.apache.org/repos/asf/mesos/blob/fb626a29/include/mesos/v1/master/master.proto ---------------------------------------------------------------------- diff --git a/include/mesos/v1/master/master.proto b/include/mesos/v1/master/master.proto index 681ea1e..d98281d 100644 --- a/include/mesos/v1/master/master.proto +++ b/include/mesos/v1/master/master.proto @@ -288,9 +288,23 @@ message Response { message GetAgents { message Agent { - // TODO(vinod): Fill in the fields. + required AgentInfo agent_info = 1; + required bool active = 2; + required string version = 3; + + optional string pid = 4; + optional TimeInfo registered_time = 5; + optional TimeInfo reregistered_time = 6; + + // Total resources (including oversubscribed resources) the agent + // provides. + repeated Resource total_resources = 7; + + repeated Resource allocated_resources = 8; + repeated Resource offered_resources = 9; } + // Registered agents. repeated Agent agents = 1; }