60class BESResponseHandlerList:
public BESObj {
62 static BESResponseHandlerList * d_instance;
63 mutable std::recursive_mutex d_cache_lock_mutex;
65 static void initialize_instance();
66 static void delete_instance();
68 std::map<std::string, p_response_handler> _handler_list;
70 friend class resplistT;
73 BESResponseHandlerList();
74 virtual ~BESResponseHandlerList();
76 typedef std::map<std::string, p_response_handler>::const_iterator Handler_citer;
77 typedef std::map<std::string, p_response_handler>::iterator Handler_iter;
79 virtual bool add_handler(
const std::string &handler, p_response_handler handler_method);
80 virtual bool remove_handler(
const std::string &handler);
83 virtual std::string get_handler_names();
85 virtual void dump(std::ostream &strm)
const;
87 static BESResponseHandlerList * TheList();