diff options
author | Abdullah Sowayan <sowayan@users.noreply.github.com> | 2007-03-18 22:23:37 +0000 |
---|---|---|
committer | Abdullah Sowayan <sowayan@users.noreply.github.com> | 2007-03-18 22:23:37 +0000 |
commit | 06a34455bd98b1379cc69bbc5b2cf085e0fc0d9b (patch) | |
tree | 8815ce3b3a85c3c4285429295f338e00ea4497f4 /CIAO/DAnCE/NodeManager/MonitorCB.h | |
parent | d66fcc9b4aaec8e88eeb83fc578fdf8a3cc963de (diff) | |
download | ATCD-Static_RT_DAnCE.tar.gz |
Diffstat (limited to 'CIAO/DAnCE/NodeManager/MonitorCB.h')
-rw-r--r-- | CIAO/DAnCE/NodeManager/MonitorCB.h | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/CIAO/DAnCE/NodeManager/MonitorCB.h b/CIAO/DAnCE/NodeManager/MonitorCB.h new file mode 100644 index 00000000000..5d4f2d8a58a --- /dev/null +++ b/CIAO/DAnCE/NodeManager/MonitorCB.h @@ -0,0 +1,73 @@ +// $Id$ +//============================================================== +/** + * @file MonitorCB.h + * + * @brief The Monitor Callback Function + * + * This class updates data back to the Target Manager + * + * @author Nilabja Roy <nilabjar.vanderbilt.edu> +*/ +//============================================================== + +#ifndef MONITOR_CBH +#define MONITOR_CBH + +#include "DAnCE/Deployment/Deployment_TargetManagerC.h" + +/** + * @namespace CIAO + * + * @brief The top level CIAO namespace + * + */ + +namespace CIAO +{ + /** + * @class MonitorCB + * + * @brief Updates data back to the TM. + * + */ + + class MonitorCB + { + public: + /** + * @param orb The ORB pointer + * @param target The TargetManager reference + * @param interval The time interval to sent update + */ + MonitorCB (CORBA::ORB_ptr orb, Deployment::TargetManager_ptr target, int interval); + /** + * This function is called by the monitor to + * update Domain data, which is then sent to + * TM. + * @param data Contains the updated Domain data + * @return int indicates success. + * @todo Check return value, seems not used at this moment + */ + int update_data (::Deployment::Domain& data); + private: + /// The ORB pointer + /// @todo Make this a _var + CORBA::ORB_ptr orb_; + + /// The Target Manager pointer to send back the + /// update + /// @todo Make this a _var + ::Deployment::TargetManager_ptr target_mgr_; + + /// The interval after which updates need to be send + int interval_; + + }; + + /// The Callback function pointer + typedef int (MonitorCB::*CallBack) (::Deployment::Domain &); + +} // CIAO namespace + +#endif /* MONITOR_CBH */ |