|
SObjectizer 5.8
|
Parameters for the SObjectizer Environment initialization. More...
#include <environment.hpp>
Public Types | |
| using | default_disp_params_t |
| A sum type for holding parameters for the default disp. | |
Private Member Functions | |
| void | add_layer (const std::type_index &type, layer_unique_ptr_t layer_ptr) |
| Add an additional layer. | |
Friends | |
| SO_5_FUNC void | swap (environment_params_t &a, environment_params_t &b) |
| Swap operation. | |
Parameters for the SObjectizer Environment initialization.
This class is used for setting SObjectizer Parameters.
Definition at line 97 of file environment.hpp.
A sum type for holding parameters for the default disp.
Definition at line 105 of file environment.hpp.
| so_5::environment_params_t::environment_params_t | ( | ) |
| so_5::environment_params_t::environment_params_t | ( | environment_params_t && | other | ) |
| so_5::environment_params_t::~environment_params_t | ( | ) |
Definition at line 71 of file environment.cpp.
|
private |
Add an additional layer.
If this layer is already added it will be replaced by layer_ptr.
The method distinguishes layers from each other by the type SO_LAYER.
| type | Type identification for layer. |
| layer_ptr | A layer to be added. |
Definition at line 143 of file environment.cpp.
|
inline |
Add an additional layer to the SObjectizer Environment.
If this layer is already added it will be replaced by layer_ptr.
The method distinguishes layers from each other by the type SO_LAYER.
| layer_ptr | A layer to be added. |
Definition at line 158 of file environment.hpp.
|
inlinenodiscard |
Is autoshutdown disabled?
Definition at line 259 of file environment.hpp.
| environment_params_t & so_5::environment_params_t::coop_listener | ( | coop_listener_unique_ptr_t | coop_listener | ) |
Set cooperation listener object.
Definition at line 125 of file environment.cpp.
|
inline |
Get the parameters for the default dispatcher.
Definition at line 399 of file environment.hpp.
|
inline |
Set parameters for a case when nef_one_thread-disp must be used as the default dispatcher.
Definition at line 364 of file environment.hpp.
|
inline |
Set parameters for a case when one_thread-disp must be used as the default dispatcher.
Definition at line 334 of file environment.hpp.
|
inlinenodiscardnoexcept |
Get the current default subscription storage factory.
Definition at line 660 of file environment.hpp.
|
inline |
Set subscription storage factory to be used by default.
Usage example:
Definition at line 643 of file environment.hpp.
|
inline |
Do not shutdown SO Environment when it is becomes empty.
Definition at line 244 of file environment.hpp.
|
inline |
| environment_params_t & so_5::environment_params_t::event_exception_logger | ( | event_exception_logger_unique_ptr_t | logger | ) |
Set exception logger object.
Definition at line 133 of file environment.cpp.
|
inline |
Set event_queue_hook object.
Since v.5.5.24 it is possible to use special event_queue_hook object. If it is used it should be set for SObjectizer Environment before the Environment will be started. This method allows to specify event_queue_hook object for a new Environment object.
Usage example:
Definition at line 528 of file environment.hpp.
|
inlinenoexcept |
Get exception reaction flag value.
Definition at line 197 of file environment.hpp.
|
inlinenoexcept |
Set exception reaction flag value.
Usage example:
Definition at line 220 of file environment.hpp.
|
inline |
Get the current environment infrastructure factory.
Definition at line 467 of file environment.hpp.
|
inline |
Set new environment infrastructure factory.
Usage example:
Definition at line 490 of file environment.hpp.
|
inline |
Set message delivery tracer for the environment.
Usage example:
Definition at line 291 of file environment.hpp.
|
inline |
Set message tracer filter for the environment.
Definition at line 303 of file environment.hpp.
|
noexcept |
|
inline |
|
inline |
Get error logger for the environment.
Definition at line 700 of file environment.hpp.
|
inline |
Get cooperation listener.
Definition at line 679 of file environment.hpp.
|
inline |
Get exception logger.
Definition at line 686 of file environment.hpp.
|
inline |
|
inlinenodiscard |
Get map of default SObjectizer's layers.
Definition at line 672 of file environment.hpp.
|
inline |
Get message delivery tracer for the environment.
Definition at line 711 of file environment.hpp.
|
inline |
Get message delivery tracer filter for the environment.
Definition at line 722 of file environment.hpp.
|
inline |
Take out queue locks defaults manager.
Definition at line 732 of file environment.hpp.
|
inline |
Get the timer_thread factory.
Definition at line 693 of file environment.hpp.
|
inline |
| environment_params_t & so_5::environment_params_t::timer_thread | ( | so_5::timer_thread_factory_t | factory | ) |
Set the timer_thread factory.
If factory is a null then the default timer thread will be used.
| factory | timer_thread factory to be used. |
Definition at line 117 of file environment.cpp.
|
inline |
Helper for turning work thread activity tracking off.
Definition at line 444 of file environment.hpp.
|
inline |
Helper for turning work thread activity tracking on.
Definition at line 433 of file environment.hpp.
|
inline |
Get activity tracking flag for the whole SObjectizer Environment.
Definition at line 423 of file environment.hpp.
|
inline |
Set activity tracking flag for the whole SObjectizer Environment.
Definition at line 410 of file environment.hpp.
|
inline |
Set work thread factory to be used by default.
Since v.5.7.3 it's possible to use custom worker threads instead of standard ones provided by SObjectizer. To do so it's required to provide an appropriate worker thread factory. It can be done by specifying a factory in parameters for a dispatcher. Or it can be done globally for the whole SObjectizer's Environment by this method.
This method sets a global factory that will be used by default. It means that:
Usage example:
Definition at line 597 of file environment.hpp.
|
friend |
|
private |
Is autoshutdown when there is no more cooperation disabled?
Definition at line 800 of file environment.hpp.
|
private |
Cooperation listener.
Definition at line 781 of file environment.hpp.
|
private |
Parameters for the default dispatcher.
Definition at line 828 of file environment.hpp.
|
private |
Default subscription storage factory.
This factory will be used by default if a specific factory isn't set for agent explicitly.
Definition at line 885 of file environment.hpp.
|
private |
|
private |
Exception logger.
Definition at line 784 of file environment.hpp.
|
private |
An event_queue_hook object.
Definition at line 860 of file environment.hpp.
|
private |
Exception reaction flag for the whole SO Environment.
Definition at line 791 of file environment.hpp.
|
private |
A factory for environment infrastructure entity.
Definition at line 849 of file environment.hpp.
|
private |
|
private |
Message delivery tracer filter to be used with environment.
Definition at line 821 of file environment.hpp.
|
private |
|
private |
Additional layers.
Definition at line 778 of file environment.hpp.
|
private |
Timer thread factory.
Definition at line 775 of file environment.hpp.
|
private |
Work thread activity tracking for the whole Environment.
Definition at line 835 of file environment.hpp.
|
private |
Global factory for work threads.
Definition at line 871 of file environment.hpp.