You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by be...@apache.org on 2011/06/05 07:29:32 UTC
svn commit: r1131786 - in /incubator/mesos/trunk: include/nexus.hpp
src/messages.cpp
Author: benh
Date: Sun Jun 5 05:29:32 2011
New Revision: 1131786
URL: http://svn.apache.org/viewvc?rev=1131786&view=rev
Log:
Add key-value params field to ExecutorInfo
Modified:
incubator/mesos/trunk/include/nexus.hpp
incubator/mesos/trunk/src/messages.cpp
Modified: incubator/mesos/trunk/include/nexus.hpp
URL: http://svn.apache.org/viewvc/incubator/mesos/trunk/include/nexus.hpp?rev=1131786&r1=1131785&r2=1131786&view=diff
==============================================================================
--- incubator/mesos/trunk/include/nexus.hpp (original)
+++ incubator/mesos/trunk/include/nexus.hpp Sun Jun 5 05:29:32 2011
@@ -99,8 +99,13 @@ struct ExecutorInfo
ExecutorInfo(const std::string& _uri, const data_string& _initArg)
: uri(_uri), initArg(_initArg) {}
+
+ ExecutorInfo(const std::string& _uri, const data_string& _initArg,
+ const string_map& _params)
+ : uri(_uri), initArg(_initArg), params(_params) {}
std::string uri;
+ string_map params;
data_string initArg;
};
Modified: incubator/mesos/trunk/src/messages.cpp
URL: http://svn.apache.org/viewvc/incubator/mesos/trunk/src/messages.cpp?rev=1131786&r1=1131785&r2=1131786&view=diff
==============================================================================
--- incubator/mesos/trunk/src/messages.cpp (original)
+++ incubator/mesos/trunk/src/messages.cpp Sun Jun 5 05:29:32 2011
@@ -79,6 +79,7 @@ void operator & (serializer& s, const Ex
{
s & info.uri;
s & info.initArg;
+ s & info.params;
}
@@ -86,6 +87,7 @@ void operator & (deserializer& s, Execut
{
s & info.uri;
s & info.initArg;
+ s & info.params;
}