/* * resource_monitor_impl.hpp * FAUST - Framework for Adaptive Ubiquitous Scalable Tasks * Website: https://macpro01.cct.lsu.edu/trac/faust * * Created by Ole Weidner on 02/13/09. * Copyright 2008-2009 Center for Computation & Technology. * * Distributed under the Boost Software License, Version 1.0. (See accompanying * LICENSE file or copy at http://www.boost.org/LICENSE_1_0.txt) */ #ifndef FAUST_IMPL_RESOURCE_MONITOR_IMPL_HPP #define FAUST_IMPL_RESOURCE_MONITOR_IMPL_HPP #include #include #include #include namespace faust { namespace impl { ////////////////////////////////////////////////////////////////////////// // class resource_monitor : public faust::impl::object, public saga::impl::attribute { private: saga::advert::entry monitor_adv_; void read_from_db_ (std::string key=""); void write_to_db_ (std::string key=""); public: resource_monitor(); resource_monitor(saga::advert::entry & monitor_adv); void set_advert_entry(saga::advert::entry e) { monitor_adv_ = e; } saga::impl::attribute* get_attributes() { return this; } saga::impl::attribute const* get_attributes() const { return this; } saga::impl::attribute_cache get_cache() {return attributes_;} void read_attributes (std::string key=""); void write_attributes (std::string key=""); }; // ////////////////////////////////////////////////////////////////////////// } } #endif /* FAUST_IMPL_JOB_IMPL_HPP */