INET Framework for OMNeT++/OMNEST
inet::ILifecycle Class Referenceabstract

Interface to be implemented by modules that want to support failure/recovery, shutdown/restart, suspend/resume, and similar scenarios. More...

#include <ILifecycle.h>

Inheritance diagram for inet::ILifecycle:
inet::ExtLowerUdp inet::Ipv4NodeConfigurator inet::Ipv4RoutingTable inet::Ipv6RoutingTable inet::L2NodeConfigurator inet::LifecycleUnsupported inet::NetworkInterface inet::NodeStatus inet::OperationalMixin< T > inet::OperationalMixin< cSimpleModule > inet::OperationalMixin< PacketProcessorBase >

Public Member Functions

virtual ~ILifecycle ()
 
virtual bool handleOperationStage (LifecycleOperation *operation, IDoneCallback *doneCallback)=0
 Perform one stage of a lifecycle operation. More...
 

Detailed Description

Interface to be implemented by modules that want to support failure/recovery, shutdown/restart, suspend/resume, and similar scenarios.

See also
LifecycleController

Constructor & Destructor Documentation

◆ ~ILifecycle()

virtual inet::ILifecycle::~ILifecycle ( )
inlinevirtual
38 {}

Member Function Documentation

◆ handleOperationStage()

virtual bool inet::ILifecycle::handleOperationStage ( LifecycleOperation operation,
IDoneCallback doneCallback 
)
pure virtual

Perform one stage of a lifecycle operation.

Processing may be done entirely within this method, or may be a longer process that involves nonzero simulation time or several events, and is triggered by this method call.

Return value: true = "done"; false = "not yet done, will invoke doneCallback when done"

Implemented in inet::NetworkInterface, inet::Ipv6RoutingTable, inet::Ipv4RoutingTable, inet::OperationalMixin< T >, inet::OperationalMixin< PacketProcessorBase >, inet::OperationalMixin< cSimpleModule >, inet::NodeStatus, inet::Ipv4NodeConfigurator, inet::ExtLowerUdp, inet::L2NodeConfigurator, and inet::LifecycleUnsupported.

Referenced by inet::LifecycleController::doOneStage().


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