Project: mesos
Issue MESOS-3068: Registry operations are hardcoded for a single key (Registry object)
This is primarily a refactoring. The prototype for modifying the registry is currently: {code} Try operator () ( Registry* registry, hashset* slaveIDs, bool strict); {code} In order to support Maintenance schedules (possibly Quotas as well), there should be an alternate prototype for Maintenance. Something like: {code} Try operation () ( Maintenance* maintenance, bool strict); {code} The existing RegistrarProcess::update (src/master/registrar.cpp) should be refactored to allow for more than one key. If necessary, refactor existing operations defined in src/master/master.hpp (AdminSlave, ReadminSlave, RemoveSlave).
Story points: 5