|
INET Framework for OMNeT++/OMNEST
|
Interface to be implemented by modules that want to support failure/recovery, shutdown/restart, suspend/resume, and similar scenarios. More...
#include <ILifecycle.h>
Public Member Functions | |
| virtual | ~ILifecycle () |
| virtual bool | handleOperationStage (LifecycleOperation *operation, IDoneCallback *doneCallback)=0 |
| Perform one stage of a lifecycle operation. More... | |
Interface to be implemented by modules that want to support failure/recovery, shutdown/restart, suspend/resume, and similar scenarios.
|
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().