#include <Monitor_Admin.h>

Public Member Functions | |
| Monitor_Admin (void) | |
| ~Monitor_Admin (void) | |
| bool | monitor_point (Monitor_Base *monitor_point, const ACE_Time_Value &time) |
| Monitor_Base * | monitor_point (const char *name) |
| void | auto_query (ACE_Event_Handler *handler, Monitor_Query *query, const ACE_Time_Value &time) |
| void | reactor (ACE_Reactor *new_reactor) |
| ACE_Reactor * | reactor (void) const |
Private Attributes | |
| Monitor_Point_Auto_Updater | auto_updater_ |
| ACE_Reactor * | reactor_ |
| bool | default_reactor_ |
| ACE::Monitor_Control::Monitor_Admin::Monitor_Admin | ( | void | ) |
| ACE::Monitor_Control::Monitor_Admin::~Monitor_Admin | ( | void | ) |
Destroys the timers associated with our event handler before its destructor is called.
We access the registry through ACE_Singleton, which doesn't call the destructor, so we call this method to do a remove_ref() on all monitor points left in the registry. which needs to be done before the registry goes away.
| void ACE::Monitor_Control::Monitor_Admin::auto_query | ( | ACE_Event_Handler * | handler, | |
| Monitor_Query * | query, | |||
| const ACE_Time_Value & | time | |||
| ) |
Works similarly to monitor_point() above, but registers the handler arg's handle_timeout() method with the reactor, instead of our auto_updater_'s handle_timeout().
| Monitor_Base * ACE::Monitor_Control::Monitor_Admin::monitor_point | ( | const char * | name | ) |
| bool ACE::Monitor_Control::Monitor_Admin::monitor_point | ( | Monitor_Base * | monitor_point, | |
| const ACE_Time_Value & | time | |||
| ) |
Add or access monitor points in a global registry If the ACE_Time_Value arg is non-zero, the monitor point, the auto updater member, and the given time interval are passed to our reactor's register_timeout() method.
This call checks for a null monitor_point.
| ACE_Reactor * ACE::Monitor_Control::Monitor_Admin::reactor | ( | void | ) | const |
| void ACE::Monitor_Control::Monitor_Admin::reactor | ( | ACE_Reactor * | new_reactor | ) |
This mutator allows the application to create its own reactor and substitute it for the default reactor.
bool ACE::Monitor_Control::Monitor_Admin::default_reactor_ [private] |
1.5.8