MCPcopy Create free account
hub / github.com/apache/mesos / send

Method send

src/common/http.hpp:159–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157
158 template <typename Message>
159 bool send(const Message& message)
160 {
161 // TODO(bmahler): Remove this evolve(). Could we still
162 // somehow assert that evolve(message) produces a result
163 // of type Event without calling evolve()?
164 Event e = evolve(message);
165
166 std::string record = serialize(contentType, e);
167
168 return writer.write(::recordio::encode(record));
169 }
170
171 // Like the above send, but for already serialized data.
172 bool send(const std::string& event)

Callers

nothing calls this directly

Calls 4

serializeFunction · 0.70
evolveFunction · 0.50
encodeFunction · 0.50
writeMethod · 0.45

Tested by

no test coverage detected