Wi5 / odin-wi5

Odin framework: Patches + Wiki (Instructions)
8 stars 17 forks source link

Middleware for Odin Applications: Send statistics from the Agent to the Controller #13

Closed josemariasaldana closed 8 years ago

josemariasaldana commented 8 years ago

The possibility of sending parameters from the AP to the controller can be done in two ways:

A subscription should be first defined in the Controller, specifying the kind of statistics required, the periodicity, etc.

josemariasaldana commented 8 years ago

We are currently working on this, in the statistics branches:

https://github.com/Wi5/odin-wi5-agent/tree/statistics

https://github.com/Wi5/odin-wi5-controller/tree/statistics We need to modify these files of the controller:

src/main/java/net/floodlightcontroller/odin/master/OdinMaster.java 
src/main/java/net/floodlightcontroller/odin/master/OdinAgent.java
src/main/java/net/floodlightcontroller/odin/master/IOdinApplicationInterface.java 
src/main/java/net/floodlightcontroller/odin/master/StubOdinAgent.java 
src/main/java/net/floodlightcontroller/odin/master/IOdinAgent.java 
src/main/java/net/floodlightcontroller/odin/master/OdinApplication.java
src/main/java/net/floodlightcontroller/odin/master/IOdinMasterToApplicationInterface.java
josemariasaldana commented 8 years ago

It works. We have merged the changes to the Development branch:

Agent: https://github.com/Wi5/odin-wi5-agent/commit/5f4208f3c1b8861628101463874b6762360a59f1

Controller: https://github.com/Wi5/odin-wi5-controller/commit/8151a61d227b2782f93210460d456fb176c2cf93