51class BESContextManager:
public BESObj {
53 static BESContextManager * d_instance;
54 mutable std::recursive_mutex d_cache_lock_mutex;
56 static void initialize_instance();
57 static void delete_instance();
59 std::unordered_map<std::string, std::string> _context_list;
63 virtual ~BESContextManager();
65 virtual void set_context(
const std::string &name,
const std::string &value);
67 virtual std::string
get_context(
const std::string &name,
bool &found);
69 virtual uint64_t get_context_uint64(
const std::string &name,
bool &found);
73 virtual void dump(std::ostream &strm)
const;
75 static BESContextManager * TheManager();
virtual void list_context(BESInfo &info)
Adds all context and their values to the given informational object.
virtual void dump(std::ostream &strm) const
dumps information about this object
virtual int get_context_int(const std::string &name, bool &found)
Get the value of the given context and return it as an integer.
virtual void set_context(const std::string &name, const std::string &value)
set context in the BES
virtual std::string get_context(const std::string &name, bool &found)
retrieve the value of the specified context from the BES
virtual void unset_context(const std::string &name)
set context in the BES