@Test public void walkFailedAlarm() { assertEquals("Alarms should be equals", alarm, snmpController.buildWalkFailedAlarm(device.deviceId())); }
@Override public DefaultAlarm buildWalkFailedAlarm(DeviceId deviceId) { return new DefaultAlarm.Builder( deviceId, "SNMP alarm retrieval failed", Alarm.SeverityLevel.CRITICAL, System.currentTimeMillis()).build(); }
DefaultSnmpController implements SnmpController { @Override public DefaultAlarm buildWalkFailedAlarm(DeviceId deviceId) { return new DefaultAlarm.Builder( deviceId, "SNMP alarm retrieval failed", Alarm.SeverityLevel.CRITICAL, System.currentTimeMillis()).build(); } }
DefaultSnmpController implements SnmpController { @Override public DefaultAlarm buildWalkFailedAlarm(DeviceId deviceId) { return new DefaultAlarm.Builder( deviceId, "SNMP alarm retrieval failed", Alarm.SeverityLevel.CRITICAL, System.currentTimeMillis()).build(); }  }
DefaultSnmpController implements SnmpController { @Override public DefaultAlarm buildWalkFailedAlarm(DeviceId deviceId) { return new DefaultAlarm.Builder( deviceId, "SNMP alarm retrieval failed", Alarm.SeverityLevel.CRITICAL, System.currentTimeMillis()).build(); }  @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 { @Override public DefaultAlarm buildWalkFailedAlarm(DeviceId deviceId) { return new DefaultAlarm.Builder( deviceId, "SNMP alarm retrieval failed", Alarm.SeverityLevel.CRITICAL, System.currentTimeMillis()).build(); }  @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);  }