First every device, we getList<PortStatistics>objects. And for every element in list, we prepare a map ofPortStatisticswithport numberand spawn a newportStatsReaderTaskfor every element in list. Now you can understand the reason for create a wrapper as explained above. Note : As per ONOS's ...
This API allow other plugins to implement PartModules that can exist in multiple occurrence in a single part and won't suffer "module indexing mismatch" persistent data losses following part configuration changes.See documentation on the wiki. ...