|
| 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()) |
|
| ~Master () override |
|
void | submitScheduler (const std::string &name) |
|
void | registerFramework (const process::UPID &from, RegisterFrameworkMessage &®isterFrameworkMessage) |
|
void | reregisterFramework (const process::UPID &from, ReregisterFrameworkMessage &&reregisterFrameworkMessage) |
|
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, LaunchTasksMessage &&launchTasksMessage) |
|
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, StatusUpdateAcknowledgementMessage &&statusUpdateAcknowledgementMessage) |
|
void | schedulerMessage (const process::UPID &from, FrameworkToExecutorMessage &&frameworkToExecutorMessage) |
|
void | executorMessage (const process::UPID &from, ExecutorToFrameworkMessage &&executorToFrameworkMessage) |
|
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 (StatusUpdateMessage &&statusUpdateMessage) |
|
void | reconcileTasks (const process::UPID &from, ReconcileTasksMessage &&reconcileTasksMessage) |
|
void | updateOperationStatus (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 (const SlaveID &slaveId, 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 |
|
| ~ProtobufProcess () override |
|
| ~Process () override |
|
PID< Master > | self () const |
| Returns the PID of the process. More...
|
|
| ProcessBase (const std::string &id="") |
|
| ~ProcessBase () override |
|
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 StreamingHttpConnection< v1::scheduler::Event > &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 | reconcileKnownSlave (Slave *slave, const std::vector< ExecutorInfo > &executors, const std::vector< Task > &tasks) |
|
void | addFramework (Framework *framework,::mesos::allocator::FrameworkOptions &&allocatorOptions) |
|
void | recoverFramework (const FrameworkInfo &info) |
|
void | connectAndActivateRecoveredFramework (Framework *framework, const Option< process::UPID > &pid, const Option< StreamingHttpConnection< v1::scheduler::Event >> &http, const process::Owned< ObjectApprovers > &objectApprovers) |
|
void | failoverFramework (Framework *framework, const process::UPID &newPid, const process::Owned< ObjectApprovers > &objectApprovers) |
|
void | failoverFramework (Framework *framework, const StreamingHttpConnection< v1::scheduler::Event > &http, const process::Owned< ObjectApprovers > &objectApprovers) |
|
void | _failoverFramework (Framework *framework) |
|
void | removeFramework (Framework *framework) |
|
void | removeFramework (Slave *slave, Framework *framework) |
|
void | updateFramework (Framework *framework, const FrameworkInfo &frameworkInfo,::mesos::scheduler::OfferConstraints &&offerConstraints,::mesos::allocator::FrameworkOptions &&allocatorOptions) |
|
void | sendFrameworkUpdates (const Framework &framework) |
|
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 > | authorize (const Option< process::http::authentication::Principal > &principal, authorization::ActionObject &&actionObject) |
|
process::Future< bool > | authorize (const Option< process::http::authentication::Principal > &principal, std::vector< authorization::ActionObject > &&actionObjects) |
|
bool | isLaunchExecutor (const ExecutorID &executorId, Framework *framework, Slave *slave) const |
|
void | addExecutor (const ExecutorInfo &executorInfo, Framework *framework, Slave *slave) |
|
void | 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) |
|
void | sendBulkOperationFeedback (Slave *slave, OperationState operationState, const std::string &message) |
|
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 | rescindOffer (Offer *offer, const Option< Filters > &filters=None()) |
|
void | discardOffer (Offer *offer, const Option< Filters > &filters=None()) |
|
void | _removeOffer (Framework *framework, Offer *offer) |
|
void | inverseOfferTimeout (const OfferID &inverseOfferId) |
|
void | removeInverseOffer (InverseOffer *inverseOffer, bool rescind=false) |
|
bool | isCompletedFramework (const FrameworkID &frameworkId) const |
|
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 Option< 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()) |
| Forwards to the correct overload of process::ProcessBase::route() , depending on whether the authentication realm realm is present. 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...
|
|