iceoryx2
C++ Bindings
Loading...
Searching...
No Matches
iox2::PortFactoryEvent< S > Class Template Reference

Represents the port factory of a [Service] with [MessagingPattern::Event]. More...

#include <port_factory_event.hpp>

Public Member Functions

 PortFactoryEvent (PortFactoryEvent &&) noexcept
auto operator= (PortFactoryEvent &&) noexcept -> PortFactoryEvent &
 ~PortFactoryEvent ()
 PortFactoryEvent (const PortFactoryEvent &)=delete
auto operator= (const PortFactoryEvent &) -> PortFactoryEvent &=delete
auto name () const -> ServiceNameView
 Returns the [ServiceName] of the service.
auto service_hash () const -> ServiceHash
 Returns the [ServiceHash] of the [Service].
auto attributes () const -> AttributeSetView
 Returns the attributes defined in the [Service].
auto static_config () const -> StaticConfigEvent
auto dynamic_config () const -> DynamicConfigEvent
auto nodes (const iox2::bb::StaticFunction< CallbackProgression(NodeState< S >)> &callback) const -> bb::Expected< void, NodeListFailure >
auto listener_builder () const -> PortFactoryListener< S >
 Returns a [PortFactoryListener] to create a new [Listener] port.
auto notifier_builder () const -> PortFactoryNotifier< S >
 Returns a [PortFactoryNotifier] to create a new [Notifier] port.
auto try_cleanup_dead_nodes () const -> CleanupState
auto blocking_cleanup_dead_nodes (iox2::bb::Duration timeout) const -> CleanupState

Friends

template<ServiceType>
class ServiceBuilderEvent

Detailed Description

template<ServiceType S>
class iox2::PortFactoryEvent< S >

Represents the port factory of a [Service] with [MessagingPattern::Event].

Definition at line 35 of file port_factory_event.hpp.

Constructor & Destructor Documentation

◆ PortFactoryEvent() [1/2]

template<ServiceType S>
iox2::PortFactoryEvent< S >::PortFactoryEvent ( PortFactoryEvent< S > && )
noexcept

◆ ~PortFactoryEvent()

◆ PortFactoryEvent() [2/2]

template<ServiceType S>
iox2::PortFactoryEvent< S >::PortFactoryEvent ( const PortFactoryEvent< S > & )
delete

References PortFactoryEvent().

Member Function Documentation

◆ attributes()

template<ServiceType S>
auto iox2::PortFactoryEvent< S >::attributes ( ) const->AttributeSetView

Returns the attributes defined in the [Service].

References attributes().

Referenced by attributes().

◆ blocking_cleanup_dead_nodes()

template<ServiceType S>
auto iox2::PortFactoryEvent< S >::blocking_cleanup_dead_nodes ( iox2::bb::Duration timeout) const->CleanupState

Removes the stale system resources of all dead [Node]s connected to this service.

If a [Node] cannot be cleaned up since the process has insufficient permissions then the [Node] is skipped. If it is currently being cleaned up by another process then the cleaner will wait until the timeout as either passed or the cleaned was finished.

The timeout is applied to every individual dead [Node] the function needs to wait on.

References blocking_cleanup_dead_nodes().

Referenced by blocking_cleanup_dead_nodes().

◆ dynamic_config()

template<ServiceType S>
auto iox2::PortFactoryEvent< S >::dynamic_config ( ) const->DynamicConfigEvent

Returns the DynamicConfig of the [Service]. Contains all dynamic settings, like the current participants etc..

References dynamic_config().

Referenced by dynamic_config().

◆ listener_builder()

template<ServiceType S>
auto iox2::PortFactoryEvent< S >::listener_builder ( ) const->PortFactoryListener< S >

Returns a [PortFactoryListener] to create a new [Listener] port.

References listener_builder().

Referenced by listener_builder().

◆ name()

template<ServiceType S>
auto iox2::PortFactoryEvent< S >::name ( ) const->ServiceNameView

Returns the [ServiceName] of the service.

References name().

Referenced by name().

◆ nodes()

template<ServiceType S>
auto iox2::PortFactoryEvent< S >::nodes ( const iox2::bb::StaticFunction< CallbackProgression(NodeState< S >)> & callback) const->bb::Expected< void, NodeListFailure >

Iterates over all [Node]s of the [Service] and calls for every [Node] the provided callback. If an error occurs while acquiring the [Node]s corresponding [NodeState] the error is forwarded to the callback as input argument.

References nodes().

Referenced by nodes().

◆ notifier_builder()

template<ServiceType S>
auto iox2::PortFactoryEvent< S >::notifier_builder ( ) const->PortFactoryNotifier< S >

Returns a [PortFactoryNotifier] to create a new [Notifier] port.

References notifier_builder().

Referenced by notifier_builder().

◆ operator=() [1/2]

template<ServiceType S>
auto iox2::PortFactoryEvent< S >::operator= ( const PortFactoryEvent< S > & ) ->PortFactoryEvent &=delete
delete

References PortFactoryEvent().

◆ operator=() [2/2]

template<ServiceType S>
auto iox2::PortFactoryEvent< S >::operator= ( PortFactoryEvent< S > && ) ->PortFactoryEvent &
noexcept

References PortFactoryEvent().

◆ service_hash()

template<ServiceType S>
auto iox2::PortFactoryEvent< S >::service_hash ( ) const->ServiceHash

Returns the [ServiceHash] of the [Service].

References service_hash().

Referenced by service_hash().

◆ static_config()

template<ServiceType S>
auto iox2::PortFactoryEvent< S >::static_config ( ) const->StaticConfigEvent

Returns the StaticConfig of the [Service]. Contains all settings that never change during the lifetime of the service.

References static_config().

Referenced by static_config().

◆ try_cleanup_dead_nodes()

template<ServiceType S>
auto iox2::PortFactoryEvent< S >::try_cleanup_dead_nodes ( ) const->CleanupState

Removes the stale system resources of all dead [Node]s connected to this service.

If a [Node] cannot be cleaned up since the process has insufficient permissions or it is currently being cleaned up by another process then the [Node] is skipped.

References try_cleanup_dead_nodes().

Referenced by try_cleanup_dead_nodes().

◆ ServiceBuilderEvent

template<ServiceType S>
template<ServiceType>
friend class ServiceBuilderEvent
friend

Definition at line 91 of file port_factory_event.hpp.

References PortFactoryEvent(), and ServiceBuilderEvent.

Referenced by ServiceBuilderEvent.


The documentation for this class was generated from the following file: