| 57 | |
| 58 | === Some module components === |
| 59 | * IFloodlightProviderService : Needed for listening to !OpenFlow messages by registering with the !FloodlightProvider. |
| 60 | * getModuleDependencies() : in a module, the function to indicate dependencies to the module loader e.g the IFloodlightProviderService above. This is probably the function that is called by the loader when it searches for loadable modules and tries to discern its dependencies. |
| 61 | * getModuleServices() : in a module, the function to indicate services exported by the module. |
| 62 | * getServiceImpls() : |
| 63 | * init() : in a module, the function where contexts are defined for services that the module is dependent on. It seems to be similar to a constructor. |
| 64 | * isCallbackOrderingPrereq(), isCallbackOrderingPostreq() : where the module should be in the message processing chain. |
| 65 | * startUp() : in a module, defines external initializations associated with other modules to which it is dependent on. |
| 66 | * receive() : defines what a module does when it receives an event e.g. the one specified in startUp(). |
| 67 | |
| 68 | === Exporting services === |
| 69 | 1. create a interface for the service |
| 70 | 1. Add interface to the module |
| 71 | 1. add classes used by the service e.g. the REST API |
64 | | === Some module components === |
65 | | * IFloodlightProviderService : Needed for listening to !OpenFlow messages by registering with the !FloodlightProvider. |
66 | | * getModuleDependencies() : in a module, the function to indicate dependencies to the module loader e.g the IFloodlightProviderService above. |
67 | | * init() : in a module, the function where contexts are defined for services that the module is dependent on. It seems to be similar to a constructor. |
68 | | * isCallbackOrderingPrereq(), isCallbackOrderingPostreq() : where the module should be in the message processing chain. |
69 | | * startUp() : in a module, defines external initializations associated with other modules to which it is dependent on. |
70 | | * receive() : defines what a module does when it receives an event e.g. the one specified in startUp(). |