Apache Mesos
|
Updates the maintanence schedule of the cluster. More...
#include <maintenance.hpp>
Public Member Functions | |
UpdateSchedule (const mesos::maintenance::Schedule &_schedule) | |
Public Member Functions inherited from mesos::internal::master::RegistryOperation | |
Try< bool > | operator() (Registry *registry, hashset< SlaveID > *slaveIDs) |
bool | set () |
Public Member Functions inherited from process::Promise< bool > | |
Promise () | |
Promise (const bool &t) | |
Promise (Promise &&that)=default | |
Promise (const Promise &that)=delete | |
virtual | ~Promise () |
Promise & | operator= (Promise &&)=default |
Promise & | operator= (const Promise &)=delete |
bool | discard () |
bool | set (const bool &_t) |
bool | set (bool &&_t) |
bool | set (const Future< bool > &future) |
bool | associate (const Future< bool > &future) |
bool | fail (const std::string &message) |
Future< bool > | future () const |
Protected Member Functions | |
Try< bool > | perform (Registry *registry, hashset< SlaveID > *slaveIDs) override |
Updates the maintanence schedule of the cluster.
This transitions machines between UP
and DRAINING
modes only. The given schedule must only add valid machines and remove machines that are not DOWN
.
TODO(josephw): allow more than one schedule.
|
explicit |
|
overrideprotectedvirtual |
Implements mesos::internal::master::RegistryOperation.