Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #ifndef MONITOR_ADMIN_H
00014 #define MONITOR_ADMIN_H
00015
00016 #include "ace/pre.h"
00017
00018 #include "ace/Event_Handler.h"
00019
00020 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00021 #pragma once
00022 #endif
00023
00024 #if defined (ACE_HAS_MONITOR_FRAMEWORK) && (ACE_HAS_MONITOR_FRAMEWORK == 1)
00025
00026 #include "ace/Monitor_Base.h"
00027
00028 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
00029
00030 namespace ACE
00031 {
00032 namespace Monitor_Control
00033 {
00034 class Monitor_Query;
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051 class Monitor_Point_Auto_Updater : public ACE_Event_Handler
00052 {
00053 public:
00054
00055 virtual int handle_timeout (const ACE_Time_Value& interval,
00056 const void* monitor_point);
00057 };
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067 class ACE_Export Monitor_Admin
00068 {
00069 public:
00070 Monitor_Admin (void);
00071 ~Monitor_Admin (void);
00072
00073
00074
00075
00076
00077
00078
00079 bool monitor_point (Monitor_Base* monitor_point,
00080 const ACE_Time_Value& time);
00081 Monitor_Base* monitor_point (const char* name);
00082
00083
00084
00085
00086 void auto_query (ACE_Event_Handler* handler,
00087 Monitor_Query* query,
00088 const ACE_Time_Value& time);
00089
00090
00091
00092 void reactor (ACE_Reactor* new_reactor);
00093 ACE_Reactor* reactor (void) const;
00094
00095 private:
00096 Monitor_Point_Auto_Updater auto_updater_;
00097 ACE_Reactor* reactor_;
00098 bool default_reactor_;
00099 };
00100 }
00101 }
00102
00103 ACE_END_VERSIONED_NAMESPACE_DECL
00104
00105 #endif
00106
00107 #include "ace/post.h"
00108
00109 #endif // MONITOR_ADMIN_H