public interface DeviceAlarmConfig extends HandlerBehaviour
| Modifier and Type | Method and Description |
|---|---|
boolean |
configureDevice(IpAddress address,
int port,
String protocol)
Configures the device to send alarms to a particular Ip and port combination.
|
<T> Set<Alarm> |
translateAlarms(List<T> unparsedAlarms)
Returns the list of translated alarms from device-specific representation
to ONOS alarms.
|
handler, setHandlerboolean configureDevice(IpAddress address, int port, String protocol)
address - address to wich the device should send alarmsport - port on which the controller is listeningprotocol - tcp or udp<T> Set<Alarm> translateAlarms(List<T> unparsedAlarms)
T - type of object given from the deviceunparsedAlarms - alarms arrived from the device depending on protocol