|
iceoryx2
C++ Bindings
|
Contains all details of a [Node] that is dead. More...
#include <node_state.hpp>
Public Member Functions | |
| DeadNodeView (const DeadNodeView &)=default | |
| DeadNodeView (DeadNodeView &&)=default | |
| auto | operator= (const DeadNodeView &) -> DeadNodeView &=default |
| auto | operator= (DeadNodeView &&) -> DeadNodeView &=default |
| ~DeadNodeView ()=default | |
| DeadNodeView (const AliveNodeView< T > &view) | |
| auto | id () const -> const UniqueNodeId & |
| Returns the [NodeId]. | |
| auto | details () const -> bb::Optional< NodeDetails > |
| auto | try_remove_stale_resources () -> iox2::bb::Expected< void, NodeCleanupFailure > |
| auto | blocking_remove_stale_resources (iox2::bb::Duration timeout) -> iox2::bb::Expected< void, NodeCleanupFailure > |
Contains all details of a [Node] that is dead.
Definition at line 52 of file node_state.hpp.
|
default |
References DeadNodeView().
Referenced by DeadNodeView(), DeadNodeView(), operator=(), and operator=().
|
default |
References DeadNodeView().
|
default |
|
explicit |
| auto iox2::DeadNodeView< T >::blocking_remove_stale_resources | ( | iox2::bb::Duration | timeout | ) | ->iox2::bb::Expected< void, NodeCleanupFailure > |
Removes all stale resources of a dead [Node]. If another instance is already removing the dead [Node] it waits until the other instance has cleaned up the dead [Node] completely. If the other cleanup instance crashes, it will take over the ownership and continue the cleanup. If the process does not have the permission to cleanup all resources it aborts with an error.
If the provided timeout is expired it will return with [NodeCleanupFailure::AnotherInstanceIsCleaningUp].
References blocking_remove_stale_resources().
Referenced by blocking_remove_stale_resources().
| auto iox2::DeadNodeView< T >::details | ( | ) | const->bb::Optional< NodeDetails > |
Returns a optional [NodeDetails] that contains further information about the [Node]. Can only be acquired when the process has the access right to read it.
References details().
Referenced by details().
| auto iox2::DeadNodeView< T >::id | ( | ) | const->constUniqueNodeId & |
Returns the [NodeId].
|
default |
References DeadNodeView().
|
default |
References DeadNodeView().
| auto iox2::DeadNodeView< T >::try_remove_stale_resources | ( | ) | ->iox2::bb::Expected< void, NodeCleanupFailure > |
Removes all stale resources of the dead [Node]. On error it returns a [NodeCleanupFailure]. It returns true if the stale resources could be removed, otherwise false.
References try_remove_stale_resources().
Referenced by try_remove_stale_resources().