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)  

irods_server_state.hpp
Go to the documentation of this file.
1 
2 
3 
4 #ifndef IRODS_SERVER_STATE_HPP
5 #define IRODS_SERVER_STATE_HPP
6 
7 #include "irods_error.hpp"
8 
9 #include <boost/thread/mutex.hpp>
10 namespace irods {
11  class server_state {
12  public:
13  static server_state& instance();
14  error operator()( const std::string& _s );
15  std::string operator()();
16 
17  static const std::string RUNNING;
18  static const std::string PAUSED;
19  static const std::string STOPPED;
20  static const std::string EXITED;
21 
22  private:
23  server_state();
26 
27  boost::mutex mutex_;
28  std::string state_;
29 
30  }; // class server_state
31 
32 }; // namespace irods
33 
34 
35 
36 #endif // IRODS_SERVER_STATE_HPP
37 
38 
irods::server_state::instance
static server_state & instance()
Definition: irods_server_state.cpp:18
irods::server_state::RUNNING
static const std::string RUNNING
Definition: irods_server_state.hpp:17
irods::server_state::state_
std::string state_
Definition: irods_server_state.hpp:28
irods::server_state::PAUSED
static const std::string PAUSED
Definition: irods_server_state.hpp:18
irods::server_state::server_state
server_state(const server_state &)
Definition: irods_server_state.hpp:25
irods::server_state::EXITED
static const std::string EXITED
Definition: irods_server_state.hpp:20
irods::server_state::STOPPED
static const std::string STOPPED
Definition: irods_server_state.hpp:19
irods
Definition: apiHandler.hpp:35
irods::server_state
Definition: irods_server_state.hpp:11
irods::error
Definition: irods_error.hpp:23
irods::server_state::server_state
server_state(server_state &)
Definition: irods_server_state.hpp:24
irods::server_state::server_state
server_state()
Definition: irods_server_state.cpp:14
irods::server_state::operator()
std::string operator()()
Definition: irods_server_state.cpp:43
irods_error.hpp
irods::server_state::mutex_
boost::mutex mutex_
Definition: irods_server_state.hpp:27