|
| Master (mesos::allocator::Allocator *allocator, Registrar *registrar, Files *files, mesos::master::contender::MasterContender *contender, mesos::master::detector::MasterDetector *detector, const Option< Authorizer * > &authorizer, const Option< std::shared_ptr< process::RateLimiter >> &slaveRemovalLimiter, const Flags &flags=Flags()) |
|
virtual | ~Master () |
|
void | submitScheduler (const std::string &name) |
|
void | registerFramework (const process::UPID &from, const FrameworkInfo &frameworkInfo) |
|
void | reregisterFramework (const process::UPID &from, const FrameworkInfo &frameworkInfo, bool failover) |
|
void | unregisterFramework (const process::UPID &from, const FrameworkID &frameworkId) |
|
void | deactivateFramework (const process::UPID &from, const FrameworkID &frameworkId) |
|
void | resourceRequest (const process::UPID &from, const FrameworkID &frameworkId, const std::vector< Request > &requests) |
|
void | launchTasks (const process::UPID &from, const FrameworkID &frameworkId, const std::vector< TaskInfo > &tasks, const Filters &filters, const std::vector< OfferID > &offerIds) |
|
void | reviveOffers (const process::UPID &from, const FrameworkID &frameworkId, const std::vector< std::string > &role) |
|
void | killTask (const process::UPID &from, const FrameworkID &frameworkId, const TaskID &taskId) |
|
void | statusUpdateAcknowledgement (const process::UPID &from, const SlaveID &slaveId, const FrameworkID &frameworkId, const TaskID &taskId, const std::string &uuid) |
|
void | schedulerMessage (const process::UPID &from, const SlaveID &slaveId, const FrameworkID &frameworkId, const ExecutorID &executorId, const std::string &data) |
|
void | executorMessage (const process::UPID &from, const SlaveID &slaveId, const FrameworkID &frameworkId, const ExecutorID &executorId, const std::string &data) |
|
void | registerSlave (const process::UPID &from, RegisterSlaveMessage &®isterSlaveMessage) |
|
void | reregisterSlave (const process::UPID &from, ReregisterSlaveMessage &&incomingMessage) |
|
void | unregisterSlave (const process::UPID &from, const SlaveID &slaveId) |
|
void | statusUpdate (StatusUpdate update, const process::UPID &pid) |
|
void | reconcileTasks (const process::UPID &from, const FrameworkID &frameworkId, const std::vector< TaskStatus > &statuses) |
|
void | updateOperationStatus (const UpdateOperationStatusMessage &update) |
|
void | exitedExecutor (const process::UPID &from, const SlaveID &slaveId, const FrameworkID &frameworkId, const ExecutorID &executorId, int32_t status) |
|
void | updateSlave (UpdateSlaveMessage &&message) |
|
void | updateUnavailability (const MachineID &machineId, const Option< Unavailability > &unavailability) |
|
process::Future< bool > | markUnreachable (const SlaveInfo &slave, bool duringMasterFailover, const std::string &message) |
|
void | markGone (Slave *slave, const TimeInfo &goneTime) |
|
void | authenticate (const process::UPID &from, const process::UPID &pid) |
|
void | frameworkFailoverTimeout (const FrameworkID &frameworkId, const process::Time &reregisteredTime) |
|
void | offer (const FrameworkID &frameworkId, const hashmap< std::string, hashmap< SlaveID, Resources >> &resources) |
|
void | inverseOffer (const FrameworkID &frameworkId, const hashmap< SlaveID, UnavailableResources > &resources) |
|
void | detected (const process::Future< Option< MasterInfo >> &_leader) |
|
void | lostCandidacy (const process::Future< Nothing > &lost) |
|
process::Future< Nothing > | _recover (const Registry ®istry) |
|
MasterInfo | info () const |
|
virtual | ~ProtobufProcess () |
|
virtual | ~Process () |
|
PID< Master > | self () const |
| Returns the PID of the process. More...
|
|
| ProcessBase (const std::string &id="") |
|
virtual | ~ProcessBase () |
|
const UPID & | self () const |
|
virtual | ~EventConsumer () |
|
|
void | initialize () override |
| Invoked when a process gets spawned. More...
|
|
void | finalize () override |
| Invoked when a process is terminated. More...
|
|
void | consume (process::MessageEvent &&event) override |
|
void | consume (process::ExitedEvent &&event) override |
|
void | exited (const process::UPID &pid) override |
| Invoked when a linked process has exited. More...
|
|
void | exited (const FrameworkID &frameworkId, const HttpConnection &http) |
|
void | _exited (Framework *framework) |
|
void | exited (const id::UUID &id) |
|
void | agentReregisterTimeout (const SlaveID &slaveId) |
|
Nothing | _agentReregisterTimeout (const SlaveID &slaveId) |
|
void | throttled (process::MessageEvent &&event, const Option< std::string > &principal) |
|
void | _consume (process::MessageEvent &&event) |
|
void | _consume (process::ExitedEvent &&event) |
|
void | exceededCapacity (const process::MessageEvent &event, const Option< std::string > &principal, uint64_t capacity) |
|
process::Future< Nothing > | recover () |
|
void | recoveredSlavesTimeout (const Registry ®istry) |
|
void | _registerSlave (const process::UPID &pid, RegisterSlaveMessage &®isterSlaveMessage, const Option< process::http::authentication::Principal > &principal, const process::Future< bool > &authorized) |
|
void | __registerSlave (const process::UPID &pid, RegisterSlaveMessage &®isterSlaveMessage, const process::Future< bool > &admit) |
|
void | _reregisterSlave (const process::UPID &pid, ReregisterSlaveMessage &&incomingMessage, const Option< process::http::authentication::Principal > &principal, const process::Future< bool > &authorized) |
|
void | __reregisterSlave (const process::UPID &pid, ReregisterSlaveMessage &&incomingMessage, const process::Future< bool > &readmit) |
|
void | ___reregisterSlave (const process::UPID &pid, ReregisterSlaveMessage &&incomingMessage, const process::Future< bool > &updated) |
|
void | updateSlaveFrameworks (Slave *slave, const std::vector< FrameworkInfo > &frameworks) |
|
void | _authenticate (const process::UPID &pid, const process::Future< Option< std::string >> &future) |
|
void | authenticationTimeout (process::Future< Option< std::string >> future) |
|
void | fileAttached (const process::Future< Nothing > &result, const std::string &path) |
|
void | contended (const process::Future< process::Future< Nothing >> &candidacy) |
|
void | _reconcileTasks (Framework *framework, const std::vector< TaskStatus > &statuses) |
|
void | reconcileKnownSlave (Slave *slave, const std::vector< ExecutorInfo > &executors, const std::vector< Task > &tasks) |
|
void | addFramework (Framework *framework, const std::set< std::string > &suppressedRoles) |
|
void | recoverFramework (const FrameworkInfo &info, const std::set< std::string > &suppressedRoles) |
|
Try< Nothing > | activateRecoveredFramework (Framework *framework, const FrameworkInfo &frameworkInfo, const Option< process::UPID > &pid, const Option< HttpConnection > &http, const std::set< std::string > &suppressedRoles) |
|
void | failoverFramework (Framework *framework, const process::UPID &newPid) |
|
void | failoverFramework (Framework *framework, const HttpConnection &http) |
|
void | _failoverFramework (Framework *framework) |
|
void | removeFramework (Framework *framework) |
|
void | removeFramework (Slave *slave, Framework *framework) |
|
void | updateFramework (Framework *framework, const FrameworkInfo &frameworkInfo, const std::set< std::string > &suppressedRoles) |
|
void | disconnect (Framework *framework) |
|
void | deactivate (Framework *framework, bool rescind) |
|
void | disconnect (Slave *slave) |
|
void | deactivate (Slave *slave) |
|
void | addSlave (Slave *slave, std::vector< Archive::Framework > &&completedFrameworks) |
|
void | _markUnreachable (const SlaveInfo &slave, const TimeInfo &unreachableTime, bool duringMasterFailover, const std::string &message, bool registrarResult) |
|
void | sendSlaveLost (const SlaveInfo &slaveInfo) |
|
void | removeSlave (Slave *slave, const std::string &message, Option< process::metrics::Counter > reason=None()) |
|
void | _removeSlave (Slave *slave, const process::Future< bool > ®istrarResult, const std::string &removalCause, Option< process::metrics::Counter > reason=None()) |
|
void | __removeSlave (Slave *slave, const std::string &message, const Option< TimeInfo > &unreachableTime) |
|
Option< Error > | validateFrameworkAuthentication (const FrameworkInfo &frameworkInfo, const process::UPID &from) |
|
process::Future< bool > | authorizeFramework (const FrameworkInfo &frameworkInfo) |
|
process::Future< bool > | authorizeSlave (const SlaveInfo &slaveInfo, const Option< process::http::authentication::Principal > &principal) |
|
process::Future< bool > | authorizeTask (const TaskInfo &task, Framework *framework) |
|
process::Future< bool > | authorizeReserveResources (const Offer::Operation::Reserve &reserve, const Option< process::http::authentication::Principal > &principal) |
| Authorizes a RESERVE operation. More...
|
|
process::Future< bool > | authorizeReserveResources (const Resources &resources, const Option< process::http::authentication::Principal > &principal) |
|
process::Future< bool > | authorizeUnreserveResources (const Offer::Operation::Unreserve &unreserve, const Option< process::http::authentication::Principal > &principal) |
| Authorizes an UNRESERVE operation. More...
|
|
process::Future< bool > | authorizeCreateVolume (const Offer::Operation::Create &create, const Option< process::http::authentication::Principal > &principal) |
| Authorizes a CREATE operation. More...
|
|
process::Future< bool > | authorizeDestroyVolume (const Offer::Operation::Destroy &destroy, const Option< process::http::authentication::Principal > &principal) |
| Authorizes a DESTROY operation. More...
|
|
Resources | addTask (const TaskInfo &task, Framework *framework, Slave *slave) |
|
void | updateTask (Task *task, const StatusUpdate &update) |
|
void | removeTask (Task *task, bool unreachable=false) |
|
void | removeExecutor (Slave *slave, const FrameworkID &frameworkId, const ExecutorID &executorId) |
|
void | addOperation (Framework *framework, Slave *slave, Operation *operation) |
|
void | updateOperation (Operation *operation, const UpdateOperationStatusMessage &update, bool convertResources=true) |
|
void | removeOperation (Operation *operation) |
|
process::Future< Nothing > | apply (Slave *slave, const Offer::Operation &operation) |
|
void | forward (const StatusUpdate &update, const process::UPID &acknowledgee, Framework *framework) |
|
void | offerTimeout (const OfferID &offerId) |
|
void | removeOffer (Offer *offer, bool rescind=false) |
|
void | inverseOfferTimeout (const OfferID &inverseOfferId) |
|
void | removeInverseOffer (InverseOffer *inverseOffer, bool rescind=false) |
|
bool | isCompletedFramework (const FrameworkID &frameworkId) |
|
Framework * | getFramework (const FrameworkID &frameworkId) const |
|
Offer * | getOffer (const OfferID &offerId) const |
|
InverseOffer * | getInverseOffer (const OfferID &inverseOfferId) const |
|
FrameworkID | newFrameworkId () |
|
OfferID | newOfferId () |
|
SlaveID | newSlaveId () |
|
void | consume (process::MessageEvent &&event) override |
|
void | send (const process::UPID &to, const google::protobuf::Message &message) |
|
void | reply (const google::protobuf::Message &message) |
|
void | install (void(Master::*method)(const process::UPID &, const M &)) |
|
void | install (void(Master::*method)(const process::UPID &, M &&)) |
|
void | install (void(Master::*method)(const process::UPID &)) |
|
void | install (void(Master::*method)(const process::UPID &, PC...), MessageProperty< M, P >...param) |
|
void | install (void(Master::*method)(const M &)) |
|
void | install (void(Master::*method)(M &&)) |
|
void | install (void(Master::*method)()) |
|
void | install (void(Master::*method)(PC...), MessageProperty< M, P >...param) |
|
virtual void | serve (Event &&event) |
| Invoked when an event is serviced. More...
|
|
void | consume (DispatchEvent &&event) override |
|
void | consume (HttpEvent &&event) override |
|
void | consume (ExitedEvent &&event) override |
|
void | consume (TerminateEvent &&event) override |
|
virtual void | lost (const UPID &) |
| Invoked when a linked process can no longer be monitored. More...
|
|
void | send (const UPID &to, const std::string &name, const char *data=nullptr, size_t length=0) |
| Sends the message to the specified UPID . More...
|
|
void | send (const UPID &to, std::string &&name) |
|
void | send (const UPID &to, std::string &&name, std::string &&data) |
|
UPID | link (const UPID &pid, const RemoteConnection remote=RemoteConnection::REUSE) |
| Links with the specified UPID . More...
|
|
void | install (const std::string &name, const MessageHandler &handler) |
| Sets up a handler for messages with the specified name. More...
|
|
template<typename T > |
void | install (const std::string &name, void(T::*method)(const UPID &, const std::string &)) |
| Sets up a handler for messages with the specified name. More...
|
|
void | delegate (const std::string &name, const UPID &pid) |
| Delegates incoming messages, with the specified name, to the UPID . More...
|
|
void | route (const std::string &name, const Option< std::string > &help, const HttpRequestHandler &handler, const RouteOptions &options=RouteOptions()) |
| Sets up a handler for HTTP requests with the specified name. More...
|
|
template<typename T > |
void | route (const std::string &name, const Option< std::string > &help, Future< http::Response >(T::*method)(const http::Request &), const RouteOptions &options=RouteOptions()) |
| Sets up a handler for HTTP requests with the specified name. More...
|
|
void | route (const std::string &name, const std::string &realm, const Option< std::string > &help, const AuthenticatedHttpRequestHandler &handler, const RouteOptions &options=RouteOptions()) |
|
template<typename T > |
void | route (const std::string &name, const std::string &realm, const Option< std::string > &help, Future< http::Response >(T::*method)(const http::Request &, const Option< http::authentication::Principal > &), const RouteOptions &options=RouteOptions()) |
| Sets up a handler for HTTP requests with the specified name. More...
|
|
void | provide (const std::string &name, const std::string &path, const std::map< std::string, std::string > &types=mime::types) |
| Sets up the default HTTP request handler to provide the static asset(s) at the specified absolute path for the specified name. More...
|
|
template<typename T > |
size_t | eventCount () |
| Returns the number of events of the given type currently on the event queue. More...
|
|