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

Function unavailability

src/master/maintenance.cpp:250–261  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

248
249
250Try<Nothing> unavailability(const Unavailability& unavailability)
251{
252 const Duration duration =
253 Nanoseconds(unavailability.duration().nanoseconds());
254
255 // Check the bounds of the unavailability.
256 if (duration < Duration::zero()) {
257 return Error("Unavailability 'duration' is negative");
258 }
259
260 return Nothing();
261}
262
263
264Try<Nothing> machines(const RepeatedPtrField<MachineID>& ids)

Callers 1

foreachFunction · 0.85

Calls 4

NanosecondsClass · 0.85
NothingClass · 0.85
durationMethod · 0.80
ErrorFunction · 0.50

Tested by

no test coverage detected