Showing
2 changed files
with
9 additions
and
6 deletions
| ... | @@ -18,6 +18,7 @@ package org.onosproject.net.newresource; | ... | @@ -18,6 +18,7 @@ package org.onosproject.net.newresource; |
| 18 | import com.google.common.annotations.Beta; | 18 | import com.google.common.annotations.Beta; |
| 19 | import com.google.common.base.MoreObjects; | 19 | import com.google.common.base.MoreObjects; |
| 20 | import com.google.common.collect.ImmutableList; | 20 | import com.google.common.collect.ImmutableList; |
| 21 | +import com.google.common.collect.Lists; | ||
| 21 | 22 | ||
| 22 | import java.util.LinkedList; | 23 | import java.util.LinkedList; |
| 23 | import java.util.List; | 24 | import java.util.List; | ... | ... |
| ... | @@ -59,15 +59,17 @@ public final class ResourceRegistrar { | ... | @@ -59,15 +59,17 @@ public final class ResourceRegistrar { |
| 59 | 59 | ||
| 60 | @Activate | 60 | @Activate |
| 61 | public void activate() { | 61 | public void activate() { |
| 62 | - deviceListener = new ResourceDeviceListener(adminService, executor); | 62 | + // FIXME there is a loop causing high resource utilization on device registration |
| 63 | - deviceService.addListener(deviceListener); | 63 | +// deviceListener = new ResourceDeviceListener(adminService, executor); |
| 64 | - linkListener = new ResourceLinkListener(adminService, driverService, executor); | 64 | +// deviceService.addListener(deviceListener); |
| 65 | - linkService.addListener(linkListener); | 65 | +// linkListener = new ResourceLinkListener(adminService, driverService, executor); |
| 66 | +// linkService.addListener(linkListener); | ||
| 66 | } | 67 | } |
| 67 | 68 | ||
| 68 | @Deactivate | 69 | @Deactivate |
| 69 | public void deactivate() { | 70 | public void deactivate() { |
| 70 | - deviceService.removeListener(deviceListener); | 71 | + // FIXME there is a loop causing high resource utilization on device registration |
| 71 | - linkService.removeListener(linkListener); | 72 | +// deviceService.removeListener(deviceListener); |
| 73 | +// linkService.removeListener(linkListener); | ||
| 72 | } | 74 | } |
| 73 | } | 75 | } | ... | ... |
-
Please register or login to post a comment