@Test public void testActivate() { snmpController.activate(null); assertNotNull("Incorrect sessionFactory", snmpController.sessionFactory); }
@Activate public void activate(ComponentContext context) { sessionFactory = new SnmpSessionFactory( new DefaultSnmpConfigurationFactory(new V2cSnmpConfiguration())); log.info("Started"); }
DefaultSnmpController implements SnmpController { @Activate public void activate(ComponentContext context) { sessionFactory = new SnmpSessionFactory( new DefaultSnmpConfigurationFactory(new V2cSnmpConfiguration())); log.info("Started"); } }
DefaultSnmpController implements SnmpController { @Activate public void activate(ComponentContext context) { sessionFactory = new SnmpSessionFactory( new DefaultSnmpConfigurationFactory(new V2cSnmpConfiguration())); log.info("Started"); }  }
DefaultSnmpController implements SnmpController { @Activate public void activate(ComponentContext context) { sessionFactory = new SnmpSessionFactory( new DefaultSnmpConfigurationFactory(new V2cSnmpConfiguration())); log.info("Started"); }  @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 { @Activate public void activate(ComponentContext context) { sessionFactory = new SnmpSessionFactory( new DefaultSnmpConfigurationFactory(new V2cSnmpConfiguration())); log.info("Started"); }  @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);  }