RAPP Platform API
 All Classes Namespaces Files Functions Variables Typedefs
service_controller.hpp
Go to the documentation of this file.
1 #ifndef RAPP_SERVICE_CONTROLLER
2 #define RAPP_SERVICE_CONTROLLER
3 #include "includes.ihh"
4 namespace rapp {
5 namespace cloud {
21 {
22 public:
23 
26 
33  void run_job(const std::shared_ptr<asio_socket> job);
34 
41  void run_jobs(const std::vector<std::shared_ptr<asio_socket>> & jobs);
42 
44  void stop();
45 
46 private:
48  boost::asio::ip::tcp::resolver::query query_;
49  boost::asio::io_service io_;
50  boost::asio::ip::tcp::resolver resol_;
51 };
52 }
53 }
54 #endif
Main class that controllers RAPP Services.
void run_jobs(const std::vector< std::shared_ptr< asio_socket >> &jobs)
Run a group of jobs in a batch.
boost::asio::ip::tcp::resolver::query query_
resolution, query and io service
service_controller()
no empty constructor
void run_job(const std::shared_ptr< asio_socket > job)
Run one service job.
void stop()
stop the service controller
boost::asio::ip::tcp::resolver resol_