ZeroSDN Controller  1.0
A modular distributed Software-Defined Network Controller
 All Classes Files Functions Variables Enumerations Enumerator Friends Macros
ExampleModuleB Class Reference

#include <ExampleModuleB.hpp>

Inheritance diagram for ExampleModuleB:

Public Member Functions

 ExampleModuleB (uint64_t instanceId)
 
 ~ExampleModuleB ()
 
virtual void handleModuleStateChange (std::shared_ptr< zmf::data::ModuleHandle > changedModule, zmf::data::ModuleState newState, zmf::data::ModuleState lastState) override
 
virtual zmf::data::ZmfOutReply handleRequest (const zmf::data::ZmfMessage &message, const zmf::data::ModuleUniqueId &sender) override
 
virtual std::string getModuleName ()
 
virtual void disable ()
 

Protected Member Functions

virtual bool enable ()
 

Constructor & Destructor Documentation

ExampleModuleB::ExampleModuleB ( uint64_t  instanceId)
ExampleModuleB::~ExampleModuleB ( )

Member Function Documentation

void ExampleModuleB::disable ( )
virtual

Called when the module should disable itself. Must stop the module (threads etc.).

bool ExampleModuleB::enable ( )
protectedvirtual

Called when the module should enable itself. Must initialize and start the module.

Returns
True if enable successful, False if enable failed or rejected
std::string ExampleModuleB::getModuleName ( )
virtual
void ExampleModuleB::handleModuleStateChange ( std::shared_ptr< zmf::data::ModuleHandle >  changedModule,
zmf::data::ModuleState  newState,
zmf::data::ModuleState  lastState 
)
overridevirtual

Optional: Handle state changes of other modules

zmf::data::ZmfOutReply ExampleModuleB::handleRequest ( const zmf::data::ZmfMessage &  message,
const zmf::data::ModuleUniqueId &  sender 
)
overridevirtual

Optional: Handle incoming ZMQ requests from other modules

Returns
Response message if we want to respond on the request, nullptr otherwise

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