SObjectizer  5.8
Loading...
Searching...
No Matches
std_names.cpp
Go to the documentation of this file.
1/*
2 * SObjectizer-5
3 */
4
5/*!
6 * \since
7 * v.5.5.4
8 *
9 * \file
10 * \brief Standard data sources prefixes and suffixes used by SObjectizer.
11 */
12
13#include <so_5/stats/std_names.hpp>
14
15namespace so_5 {
16
17namespace stats {
18
19namespace prefixes {
20
23 {
24 return prefix_t( "coop_repository" );
25 }
26
29 {
30 return prefix_t( "mbox_repository" );
31 }
32
35 {
36 return prefix_t( "timer_thread" );
37 }
38
39} /* namespace prefixes */
40
41namespace suffixes {
42
43#define IMPL_SUFFIX(val) static
44 constexpr const char s[] = val;return
45 suffix_t{ s };
46
49 {
50 IMPL_SUFFIX( "/coop.count" )
51 }
52
55 {
56 IMPL_SUFFIX( "/coop.final.dereg.count" )
57 }
58
61 {
62 IMPL_SUFFIX( "/named_mbox.count" )
63 }
64
67 {
68 IMPL_SUFFIX( "/agent.count" )
69 }
70
73 {
74 IMPL_SUFFIX( "/group.count" )
75 }
76
79 {
80 IMPL_SUFFIX( "/demands.count" )
81 }
82
85 {
86 IMPL_SUFFIX( "/thread.activity" )
87 }
88
91 {
92 IMPL_SUFFIX( "/threads.count" )
93 }
94
97 {
98 IMPL_SUFFIX( "/single_shot.count" )
99 }
100
103 {
104 IMPL_SUFFIX( "/periodic.count" )
105 }
106
109 {
110 IMPL_SUFFIX( "/demands.quote" )
111 }
112
113#undef IMPL_SUFFIX
114
115} /* namespace suffixes */
116
117} /* namespace stats */
118
119} /* namespace so_5 */
A type for storing prefix of data_source name.
Definition prefix.hpp:32
constexpr prefix_t(const char *value) noexcept
Initializing constructor.
Definition prefix.hpp:54
A type for representing the suffix of data_source name.
Definition prefix.hpp:156
#define SO_5_FUNC
Definition declspec.hpp:48
Predefined prefixes of data-sources.
Definition std_names.hpp:23
SO_5_FUNC prefix_t coop_repository()
Prefix of data sources with statistics for cooperations and agents repository.
Definition std_names.cpp:22
SO_5_FUNC prefix_t timer_thread()
Prefix of data sources with statistics for timer thread.
Definition std_names.cpp:34
SO_5_FUNC prefix_t mbox_repository()
Prefix of data sources with statistics for mboxes repository.
Definition std_names.cpp:28
Predefined suffixes of data-sources.
Definition std_names.hpp:55
SO_5_FUNC suffix_t coop_final_dereg_count()
Suffix for data source with count of cooperations waiting the final deregistration step and removemen...
Definition std_names.cpp:54
SO_5_FUNC suffix_t agent_count()
Suffix for data source with count of agents bound to some entity.
Definition std_names.cpp:66
SO_5_FUNC suffix_t work_thread_queue_size()
Suffix for data source with count of demands in a working thread event queue.
Definition std_names.cpp:78
SO_5_FUNC suffix_t named_mbox_count()
Suffix for data source with count of named mboxes.
Definition std_names.cpp:60
SO_5_FUNC suffix_t disp_active_group_count()
Suffix for data source with count of active groups in an active_group dispatcher.
Definition std_names.cpp:72
SO_5_FUNC suffix_t work_thread_activity()
Suffix for data source with work thread activity statistics.
Definition std_names.cpp:84
SO_5_FUNC suffix_t disp_thread_count()
Suffix for data source with count of work threads for dispatcher.
Definition std_names.cpp:90
SO_5_FUNC suffix_t timer_periodic_count()
Suffix for data source with count of periodic timers.
SO_5_FUNC suffix_t coop_count()
Suffix for data source with count of cooperations.
Definition std_names.cpp:48
SO_5_FUNC suffix_t timer_single_shot_count()
Suffix for data source with count of single-shot timers.
Definition std_names.cpp:96
SO_5_FUNC suffix_t demand_quote()
Suffix for data source with size of quote for demands processing.
All stuff related to run-time monitoring and statistics.
Private part of message limit implementation.
Definition agent.cpp:33
#define IMPL_SUFFIX(val)
Definition std_names.cpp:43