Brian O'Connor

Temporarily commenting out the device and link resource service listeners

There was bug introduced with a refactoring in commit:
c9546a36

The code was refactored again in this commit:
60ac58ef

Change-Id: I6c96dc1b9e0632865ae6742ed596624f7ed3d623
......@@ -18,6 +18,7 @@ package org.onosproject.net.newresource;
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;
......
......@@ -59,15 +59,17 @@ public final class ResourceRegistrar {
@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);
}
}
......