irods
4.2.8
About: iRODS (the integrated Rule Oriented Data System) is a distributed data-management system for creating data grids, digital libraries, persistent archives, and real-time data systems. Fossies Dox: irods-4.2.8.tar.gz ("unofficial" and yet experimental doxygen-generated source code documentation) 
|
Go to the documentation of this file.
4 #ifndef SERVER_CONTROL_PLANE_HPP
5 #define SERVER_CONTROL_PLANE_HPP
8 #include "boost/thread.hpp"
9 #include "boost/atomic.hpp"
11 #include "server_control_plane_command.hpp"
12 #include "boost/unordered_map.hpp"
31 const std::string
SERVER_PAUSED_ERROR(
"The server is Paused, resume before issuing any other commands" );
51 typedef boost::function<
error(
const std::string&,
const size_t, std::string& ) >
ctrl_func_t;
57 const zmq::message_t&,
61 const irods::control_plane_command&,
103 const std::string& );
110 boost::unordered_map< std::string, ctrl_func_t >
op_map_;
139 #endif // SERVER_CONTROL_PLANE_HPP
const std::string SERVER_CONTROL_OPTION_KW("server_control_option")
const std::string SERVER_CONTROL_PAUSE("server_control_pause")
error process_operation(const zmq::message_t &, std::string &)
static const size_t SERVER_CONTROL_POLLING_TIME_MILLI_SEC
error process_host_list(const std::string &, const std::string &, const size_t &, const host_list_t &, std::string &)
boost::thread control_thread_
error get_resource_host_names(host_list_t &)
std::vector< std::string > host_list_t
server_control_plane(const std::string &)
const std::string SERVER_CONTROL_FORCE_AFTER_KW("server_control_force_after")
const std::string SERVER_CONTROL_ALL_OPT("all")
error forward_command(const std::string &, const std::string &, const std::string &, const std::string &, const size_t &, std::string &)
const std::string SERVER_CONTROL_HOSTS_OPT("hosts")
const std::string SERVER_CONTROL_WAIT_FOREVER_KW("server_control_wait_forever")
error notify_icat_and_local_servers_postop(const std::string &, const std::string &, const std::string &, const size_t &, const host_list_t &, std::string &)
const std::string SERVER_CONTROL_SUCCESS("server_control_success")
server_control_executor(const server_control_executor &)
const std::string SERVER_PAUSED_ERROR("The server is Paused, resume before issuing any other commands")
server_control_executor control_executor_
const std::string SERVER_CONTROL_PING("server_control_ping")
std::string my_host_name_
const std::string port_prop_
server_control_executor()
const std::string SERVER_CONTROL_SHUTDOWN("server_control_shutdown")
error notify_icat_and_local_servers_preop(const std::string &, const std::string &, const std::string &, const size_t &, const host_list_t &, std::string &)
boost::function< error(const std::string &, const size_t, std::string &) > ctrl_func_t
server_control_plane(server_control_plane &)
static const size_t SERVER_CONTROL_FWD_SLEEP_TIME_MILLI_SEC
bool compare_host_names(const std::string &, const std::string &)
error validate_host_list(const host_list_t &, const host_list_t &, host_list_t &)
error extract_command_parameters(const irods::control_plane_command &, std::string &, std::string &, std::string &, size_t &, host_list_t &)
const std::string SERVER_CONTROL_RESUME("server_control_resume")
std::string icat_host_name_
bool is_host_in_list(const std::string &, const host_list_t &)
boost::unordered_map< std::string, ctrl_func_t > op_map_
const std::string SERVER_CONTROL_STATUS("server_control_status")
const std::string SERVER_CONTROL_HOST_KW("server_control_host")