17 #ifndef __TESTS_CLUSTER_HPP__ 18 #define __TESTS_CLUSTER_HPP__ 57 #include "master/master.hpp" 87 const master::Flags&
flags = master::Flags(),
91 const Option<std::shared_ptr<process::RateLimiter>>&
92 slaveRemovalLimiter =
None());
146 bool authorizationCallbacksSet;
222 bool cleanUpContainersInDestructor =
true;
250 bool authorizationCallbacksSet;
261 #endif // __TESTS_CLUSTER_HPP__
Definition: master.hpp:27
process::PID< master::Master > pid
Definition: cluster.hpp:103
Definition: cluster.hpp:150
process::Owned< MockRegistrar > registrar
Definition: cluster.hpp:136
void terminate(const UPID &pid, bool inject=true)
Sends a TerminateEvent to the given process.
This interface is used to enable an identity service or any other back end to check authorization pol...
Definition: authorizer.hpp:268
Definition: containerizer.hpp:64
MasterInfo getMasterInfo()
process::Owned< mesos::master::detector::MasterDetector > createDetector()
constexpr char READONLY_HTTP_AUTHENTICATION_REALM[]
Definition: mesos.hpp:111
bool wait(const UPID &pid, const Duration &duration=Seconds(-1))
Wait for the process to exit for no more than the specified seconds.
process::Owned< master::Master > master
Definition: cluster.hpp:139
static Try< process::Owned< Master > > start(const master::Flags &flags=master::Flags(), const Option< zookeeper::URL > &zookeeperUrl=None(), const Option< mesos::allocator::Allocator * > &allocator=None(), const Option< Authorizer * > &authorizer=None(), const Option< std::shared_ptr< process::RateLimiter >> &slaveRemovalLimiter=None())
Definition: cluster.hpp:77
process::PID< slave::Slave > pid
Definition: cluster.hpp:200
A "process identifier" used to uniquely identify a process when dispatching messages.
Definition: pid.hpp:289
Definition: attributes.hpp:24
Definition: mock_slave.hpp:90
An abstraction of a Master detector which can be used to detect the leading master from a group...
Definition: detector.hpp:38
void setAuthorizationCallbacks(Authorizer *authorizer)
Try< Nothing > create(const std::string &hierarchy, const std::string &cgroup, bool recursive=false)