platformmanagerClient.h
Go to the documentation of this file.
1 
5 #pragma once
6 
7 #include "../../../../LIBRARIES/MIDDLEWARE/src/com/dpyMwClient.h"
8 #include "platformmanagerProto.pb.h"
9 #include "platformmanagerApi.h"
10 
15 {
16 private:
17  void RegisterCallbacks();
18 public:
19  PlatformManagerClient(std::string& ip, int dport, int sport);
21 
22  void getProcessStatus(dpyPlatformmanager::process_status_handler_function handler, std::string name = "");
23  void getExtendedProcessStatus(dpyPlatformmanager::extended_process_status_handler_function handler, std::string name = "");
24  void getProcessStatusExtended_S(dpyPlatformmanager::extended_process_status_handler_function handler);
25  void getProcessStatusExtended_U();
26  void getProcessStatus_S(dpyPlatformmanager::process_status_handler_function handler);
27  void getProcessStatus_U();
28  void getProcessListEvents_S(dpyPlatformmanager::process_list_event_handler_function handler);
29  void getProcessListEvents_U();
30  void getProcessListEventsExtended_S(dpyPlatformmanager::process_list_event_extended_handler_function handler);
31  void getProcessListEventsExtended_U();
32  void getProcessEvents_S(dpyPlatformmanager::process_event_handler_function handler);
33  void getProcessEvents_U();
34  void getEvaluationStatus(dpyPlatformmanager::evaluation_status_handler_function handler);
35  void getEvaluationStatus_S(dpyPlatformmanager::evaluation_status_handler_function handler);
36  void getEvaluationStatus_U();
37  void startProcess(dpyPlatformmanager::result_handler_function handler, std::string name);
38  void stopProcess(dpyPlatformmanager::result_handler_function handler, std::string name);
39  void addProcess(dpyPlatformmanager::result_handler_function handler, std::string name, dpyPlatformmanager::Options options);
40  void addProcess(dpyPlatformmanager::result_handler_function handler, std::string name, dpyPlatformmanager::ExtendedProcessOptions options);
41  void delProcess(dpyPlatformmanager::result_handler_function handler, std::string name);
42  void kickWatchdog(dpyPlatformmanager::result_handler_function handler, std::string name, int deadline);
43  void wait(dpyPlatformmanager::result_handler_function handler, std::string name);
44  void finished(dpyPlatformmanager::result_handler_function handler, std::string name, dpyPlatformmanager::EvaluationResult result);
45 };
EvaluationResult
Definition: platformmanagerApi.h:30
Definition: platformManagerTypes.h:48
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.
Definition: platformmanagerApi.h:118
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.
Definition: platformmanagerApi.h:126
boost::function< void(boost::system::error_code error_code, std::string name, ProcessEvent event)> process_event_handler_function
Handler for process events.
Definition: platformmanagerApi.h:134
boost::function< void(boost::system::error_code error_code)> result_handler_function
Handler for command function callback.
Definition: platformmanagerApi.h:109
Interacts with platform manager service.
Definition: platformmanagerClient.h:14
Definition: platformmanagerApi.h:39
Manages dealer and susbriber.
Definition: dpyMwClient.h:59
boost::function< void(boost::system::error_code error_code, std::vector< dpyPlatformmanager::ExtendedProcessInfo > info)> extended_process_status_handler_function
Handler for status function callback.
Definition: platformmanagerApi.h:92
boost::function< void(boost::system::error_code error_code, std::vector< dpyPlatformmanager::Info > info)> process_status_handler_function
Handler for status function callback.
Definition: platformmanagerApi.h:82
boost::function< void(boost::system::error_code error_code, const dpyPlatformmanager::EvaluationStatus &status)> evaluation_status_handler_function
Handler for status function callback.
Definition: platformmanagerApi.h:101