Apache Mesos
Classes | Namespaces | Functions | Variables
process.hpp File Reference
#include <stdint.h>
#include <memory>
#include <map>
#include <queue>
#include <vector>
#include <process/address.hpp>
#include <process/authenticator.hpp>
#include <process/clock.hpp>
#include <process/event.hpp>
#include <process/filter.hpp>
#include <process/firewall.hpp>
#include <process/http.hpp>
#include <process/message.hpp>
#include <process/mime.hpp>
#include <process/owned.hpp>
#include <process/pid.hpp>
#include <stout/duration.hpp>
#include <stout/hashmap.hpp>
#include <stout/lambda.hpp>
#include <stout/option.hpp>
#include <stout/synchronized.hpp>

Go to the source code of this file.

Classes

class  process::ProcessBase
 
struct  process::ProcessBase::RouteOptions
 
class  process::Process< T >
 

Namespaces

 process
 
 process::firewall
 
 process::inject
 

Functions

void process::firewall::install (std::vector< Owned< FirewallRule >> &&rules)
 Install a list of firewall rules which are used to forbid incoming HTTP requests. More...
 
bool process::initialize (const Option< std::string > &delegate=None(), const Option< std::string > &readwriteAuthenticationRealm=None(), const Option< std::string > &readonlyAuthenticationRealm=None())
 Initialize the library. More...
 
void process::finalize (bool finalize_wsa=false)
 Clean up the library. More...
 
std::string process::absolutePath (const std::string &path)
 Get the request absolutePath path with delegate prefix. More...
 
network::inet::Address process::address ()
 Returns the socket address associated with this instance of the library. More...
 
PID< Logging > process::logging ()
 Return the PID associated with the global logging process. More...
 
long process::workers ()
 Returns the number of worker threads the library has created. More...
 
UPID process::spawn (ProcessBase *process, bool manage=false)
 Spawn a new process. More...
 
UPID process::spawn (ProcessBase &process, bool manage=false)
 
template<typename T >
PID< T > process::spawn (T *t, bool manage=false)
 
template<typename T >
PID< T > process::spawn (T &t, bool manage=false)
 
void process::terminate (const UPID &pid, bool inject=true)
 Sends a TerminateEvent to the given process. More...
 
void process::terminate (const ProcessBase &process, bool inject)
 Sends a TerminateEvent to the given process. More...
 
void process::terminate (const ProcessBase *process, bool inject)
 Sends a TerminateEvent to the given process. More...
 
bool process::wait (const UPID &pid, const Duration &duration=Seconds(-1))
 Wait for the process to exit for no more than the specified seconds. More...
 
bool process::wait (const ProcessBase &process, const Duration &duration)
 Wait for the process to exit for no more than the specified seconds. More...
 
bool process::wait (const ProcessBase *process, const Duration &duration)
 Wait for the process to exit for no more than the specified seconds. More...
 
void process::post (const UPID &to, const std::string &name, const char *data=nullptr, size_t length=0)
 Sends a message with data without a return address. More...
 
void process::post (const UPID &from, const UPID &to, const std::string &name, const char *data=nullptr, size_t length=0)
 
bool process::inject::exited (const UPID &from, const UPID &to)
 Simulates disconnection of the link between 'from' and 'to' by sending an ExitedEvent to 'to'. More...
 

Variables

thread_local ProcessBase * process::__process__