Users of algorithms can request heart-beat messages to be written out by specifying --heartbeat=$HOME/heartbeat/refmerger.lb,60 for example. The 60 signifies that hearbeats are to be written out every 60 seconds.
Algorithm writers can add new information to the current XML message that is to be written out using the addInfo() method.
Public Member Functions | |
void | writeMessage () |
Force a write of heartbeat message to LB. | |
XML::Element & | currentElement () |
Get current element in order to modify it, such as to add more information. | |
Static Public Member Functions | |
static Heartbeat & | instance () |
template<class T> | |
static void | addInfo (const std::string &attr_name, const T &value) |
Add/modify this attribute of the current element. | |
static void | createInstance (const std::string ¶m) |
parameter should be of the form $HOME/heartbeat/refmerger.lb,60 The 60 signifies that hearbeats are to be written out every 60 seconds and the LB name indicates where the heartbeats are to be written out. |
static void code::Heartbeat::addInfo | ( | const std::string & | attr_name, | |
const T & | value | |||
) | [inline, static] |
Add/modify this attribute of the current element.
Takes string, size_t, int and double.
static void code::Heartbeat::createInstance | ( | const std::string & | param | ) | [static] |
parameter should be of the form $HOME/heartbeat/refmerger.lb,60 The 60 signifies that hearbeats are to be written out every 60 seconds and the LB name indicates where the heartbeats are to be written out.
XML::Element& code::Heartbeat::currentElement | ( | ) | [inline] |
static Heartbeat& code::Heartbeat::instance | ( | ) | [inline, static] |
void code::Heartbeat::writeMessage | ( | ) |
Force a write of heartbeat message to LB.