This source file includes following definitions.
- heartbeat_open
- heartbeat_query
- heartbeat_close
1
2
3
4
5
6
7
8
9
10
11
12 #include <src/include/pmix_config.h>
13 #include <pmix_common.h>
14
15 #include "src/mca/ptl/ptl.h"
16 #include "src/mca/psensor/base/base.h"
17 #include "src/mca/psensor/heartbeat/psensor_heartbeat.h"
18
19
20
21
22
23 static int heartbeat_open(void);
24 static int heartbeat_close(void);
25 static int heartbeat_query(pmix_mca_base_module_t **module, int *priority);
26
27 pmix_psensor_heartbeat_component_t mca_psensor_heartbeat_component = {
28 .super = {
29 .base = {
30 PMIX_PSENSOR_BASE_VERSION_1_0_0,
31
32
33 .pmix_mca_component_name = "heartbeat",
34 PMIX_MCA_BASE_MAKE_VERSION(component,
35 PMIX_MAJOR_VERSION,
36 PMIX_MINOR_VERSION,
37 PMIX_RELEASE_VERSION),
38
39
40 heartbeat_open,
41 heartbeat_close,
42 heartbeat_query
43 }
44 }
45 };
46
47
48
49
50
51 static int heartbeat_open(void)
52 {
53 PMIX_CONSTRUCT(&mca_psensor_heartbeat_component.trackers, pmix_list_t);
54
55 return PMIX_SUCCESS;
56 }
57
58
59 static int heartbeat_query(pmix_mca_base_module_t **module, int *priority)
60 {
61 *priority = 5;
62 *module = (pmix_mca_base_module_t *)&pmix_psensor_heartbeat_module;
63 return PMIX_SUCCESS;
64 }
65
66
67
68
69
70 static int heartbeat_close(void)
71 {
72 PMIX_LIST_DESTRUCT(&mca_psensor_heartbeat_component.trackers);
73
74 return PMIX_SUCCESS;
75 }