Temporarily commenting out the device and link resource service listeners
There was bug introduced with a refactoring in commit:
c9546a3646423a92254708fb00a155669a8a1b2a
The code was refactored again in this commit:
60ac58efe977e2d8822657c013e724523cae32ac
Change-Id: I6c96dc1b9e0632865ae6742ed596624f7ed3d623
diff --git a/core/api/src/main/java/org/onosproject/net/newresource/ResourcePath.java b/core/api/src/main/java/org/onosproject/net/newresource/ResourcePath.java
index 0a4d385..9816841 100644
--- a/core/api/src/main/java/org/onosproject/net/newresource/ResourcePath.java
+++ b/core/api/src/main/java/org/onosproject/net/newresource/ResourcePath.java
@@ -18,6 +18,7 @@
import com.google.common.annotations.Beta;
import com.google.common.base.MoreObjects;
import com.google.common.collect.ImmutableList;
+import com.google.common.collect.Lists;
import java.util.LinkedList;
import java.util.List;
diff --git a/core/net/src/main/java/org/onosproject/net/newresource/impl/ResourceRegistrar.java b/core/net/src/main/java/org/onosproject/net/newresource/impl/ResourceRegistrar.java
index 143f8c2..8a320b8 100644
--- a/core/net/src/main/java/org/onosproject/net/newresource/impl/ResourceRegistrar.java
+++ b/core/net/src/main/java/org/onosproject/net/newresource/impl/ResourceRegistrar.java
@@ -59,15 +59,17 @@
@Activate
public void activate() {
- deviceListener = new ResourceDeviceListener(adminService, executor);
- deviceService.addListener(deviceListener);
- linkListener = new ResourceLinkListener(adminService, driverService, executor);
- linkService.addListener(linkListener);
+ // FIXME there is a loop causing high resource utilization on device registration
+// deviceListener = new ResourceDeviceListener(adminService, executor);
+// deviceService.addListener(deviceListener);
+// linkListener = new ResourceLinkListener(adminService, driverService, executor);
+// linkService.addListener(linkListener);
}
@Deactivate
public void deactivate() {
- deviceService.removeListener(deviceListener);
- linkService.removeListener(linkListener);
+ // FIXME there is a loop causing high resource utilization on device registration
+// deviceService.removeListener(deviceListener);
+// linkService.removeListener(linkListener);
}
}