dpyPlatformmanager Namespace Reference

Deepsy Platformmanager namespace that includes the different enums, structs or method signatures that should be used.

Classes

struct  ExtendedProcessInfo
 
struct  ExtendedProcessOptions
 
struct  Info
 
struct  Options
 
struct  Status
 

Typedefs

typedef boost::function< void(const bool &available)> service_availability_handler
 Prototype of the handler function used to monitor service availability. More...
 
typedef boost::function< void(boost::system::error_code error_code, std::vector< dpyPlatformmanager::Info > info)> process_status_handler_function
 Handler for status function callback. More...
 
typedef boost::function< void(boost::system::error_code error_code, std::vector< dpyPlatformmanager::ExtendedProcessInfo > info)> extended_process_status_handler_function
 Handler for status function callback. More...
 
typedef boost::function< void(boost::system::error_code error_code, const dpyPlatformmanager::EvaluationStatus &status)> evaluation_status_handler_function
 Handler for status function callback. More...
 
typedef boost::function< void(boost::system::error_code error_code)> result_handler_function
 Handler for command function callback. More...
 
typedef boost::function< void(boost::system::error_code error_code, std::string name, ProcessListEvent event, Options options)> process_list_event_handler_function
 Handler for process list events. More...
 
typedef boost::function< void(boost::system::error_code error_code, std::string name, ProcessListEvent event, dpyPlatformmanager::ExtendedProcessOptions options)> process_list_event_extended_handler_function
 Handler for process list events. More...
 
typedef boost::function< void(boost::system::error_code error_code, std::string name, ProcessEvent event)> process_event_handler_function
 Handler for process events. More...
 

Enumerations

enum  EvaluationResult { OK = 0, ERROR = 1 }
 
enum  ProcessListEvent { ADDED = 0, REMOVED = 1 }
 
enum  EvaluationStatus { WAITING_FOR_EVALUATION = 0, WAITING_FOR_ROLLING_BACK = 1, EVALUATION_OK = 2, IDLE = 3 }
 
enum  ProcessEvent { STARTED = 0, STOPPED = 1, RELAUNCHED = 2 }
 

Typedef Documentation

typedef boost::function<void(boost::system::error_code error_code, const dpyPlatformmanager::EvaluationStatus& status)> evaluation_status_handler_function

This type of function is called when the status callback is done.

Parameters
error_codeerror code (if any)
infovector with the status of the processes
typedef boost::function<void(boost::system::error_code error_code, std::vector<dpyPlatformmanager::ExtendedProcessInfo> info)> extended_process_status_handler_function

This type of function is called when the status callback is done.

Parameters
error_codeerror code (if any)
infovector with the status of the processes
typedef boost::function<void(boost::system::error_code error_code, std::string name, ProcessEvent event)> process_event_handler_function

This type of function is called when a process is started,stopped or relaunched

Parameters
error_codeerror code (if any)
typedef boost::function<void(boost::system::error_code error_code, std::string name, ProcessListEvent event, dpyPlatformmanager::ExtendedProcessOptions options )> process_list_event_extended_handler_function

This type of function is called when a process is added or removed.

Parameters
error_codeerror code (if any)
typedef boost::function<void(boost::system::error_code error_code, std::string name, ProcessListEvent event, Options options )> process_list_event_handler_function

This type of function is called when a process is added or removed.

Parameters
error_codeerror code (if any)
typedef boost::function<void(boost::system::error_code error_code, std::vector<dpyPlatformmanager::Info> info)> process_status_handler_function

This type of function is called when the status callback is done.

Parameters
error_codeerror code (if any)
infovector with the status of the processes
typedef boost::function<void(boost::system::error_code error_code)> result_handler_function

This type of function is called when a command (start,stop,add,del) callback is done.

Parameters
error_codeerror code (if any)
typedef boost::function<void(const bool &available)> service_availability_handler
Parameters
availabletrue if the service is available, false otherwise

Enumeration Type Documentation

Evaluation result

Enumerator
OK 

evaluation ok

ERROR 

evaluation error

Evaluation status

Enumerator
WAITING_FOR_EVALUATION 

waiting for processes evaluation

WAITING_FOR_ROLLING_BACK 

waiting for processes rolling back

EVALUATION_OK 

evaluation ok

IDLE 

idle

Process events

Enumerator
STARTED 

process has been started

STOPPED 

process has been stopped

RELAUNCHED 

process has been relaunched

Process list events

Enumerator
ADDED 

process has been added

REMOVED 

process has been removed