blob: 5c24c7f4ab434f7bf07bd9e53719bcabf6150929 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
// -*- C++ -*-
//=============================================================================
/**
* @file Monitor_Query.h
*
* @author Jeff Parsons <j.parsons@vanderbilt.edu>
*/
//=============================================================================
#ifndef MONITOR_QUERY_H
#define MONITOR_QUERY_H
#include /**/ "ace/pre.h"
#include "ace/Event_Handler.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
#pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#if defined (ACE_HAS_MONITOR_FRAMEWORK) && (ACE_HAS_MONITOR_FRAMEWORK == 1)
#include "ace/Monitor_Control/Monitor_Control_export.h"
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
namespace ACE
{
namespace Monitor_Control
{
/**
* @class Monitor_Point_Auto_Query
*
* @brief Automates periodic querying of monitor point classes.
*
*/
class MONITOR_CONTROL_Export Monitor_Point_Auto_Query
: public ACE_Event_Handler
{
public:
/// Default constructor
Monitor_Point_Auto_Query ();
/// Override of ACE base class method.
virtual int handle_timeout (const ACE_Time_Value& current,
const void* monitor_query);
};
/**
* @class Monitor_Query
*
* @brief Handles queries for a specific monitor point, and
* evaluates its constraint(s) with each query.
*
*/
class MONITOR_CONTROL_Export Monitor_Query
{
public:
Monitor_Query (const char* monitor_name);
void query (void);
private:
Monitor_Base* monitor_;
};
}
}
ACE_END_VERSIONED_NAMESPACE_DECL
#endif /* ACE_HAS_MONITOR_FRAMEWORK==1 */
#include /**/ "ace/post.h"
#endif // MONITOR_QUERY_H
|