Ejemplo n.º 1
0
 @Override
 public boolean isRelevant(NetconfDeviceOutputEvent event) {
   return getDevicesMap().containsKey(event.getDeviceInfo().getDeviceId());
 }
Ejemplo n.º 2
0
 @Override
 public void event(NetconfDeviceOutputEvent event) {
   if (event.type().equals(NetconfDeviceOutputEvent.Type.DEVICE_UNREGISTERED)) {
     removeDevice(event.getDeviceInfo());
   }
 }