@Test public void testDeactivate() { snmpController.deactivate(); assertEquals("Device map should be clear", 0, snmpController.getDevices().size()); assertEquals("Session map should be clear", 0, snmpController.sessionMap.size()); }
@Deactivate public void deactivate() { sessionMap.clear(); snmpDeviceMap.clear(); log.info("Stopped"); }
DefaultSnmpController implements SnmpController { @Deactivate public void deactivate() { sessionMap.clear(); snmpDeviceMap.clear(); log.info("Stopped"); } }
DefaultSnmpController implements SnmpController { @Deactivate public void deactivate() { sessionMap.clear(); snmpDeviceMap.clear(); log.info("Stopped"); }  }
DefaultSnmpController implements SnmpController { @Deactivate public void deactivate() { sessionMap.clear(); snmpDeviceMap.clear(); log.info("Stopped"); }  @Activate void activate(ComponentContext context); @Deactivate void deactivate(); @Override ISnmpSession getSession(DeviceId deviceId); @Override Collection<SnmpDevice> getDevices(); @Override SnmpDevice getDevice(DeviceId did); @Override void removeDevice(DeviceId did); @Override void addDevice(DeviceId did, SnmpDevice device); @Override DefaultAlarm buildWalkFailedAlarm(DeviceId deviceId); }
DefaultSnmpController implements SnmpController { @Deactivate public void deactivate() { sessionMap.clear(); snmpDeviceMap.clear(); log.info("Stopped"); }  @Activate void activate(ComponentContext context); @Deactivate void deactivate(); @Override ISnmpSession getSession(DeviceId deviceId); @Override Collection<SnmpDevice> getDevices(); @Override SnmpDevice getDevice(DeviceId did); @Override void removeDevice(DeviceId did); @Override void addDevice(DeviceId did, SnmpDevice device); @Override DefaultAlarm buildWalkFailedAlarm(DeviceId deviceId);  }