Search in sources :

Example 6 with XmppDeviceId

use of org.onosproject.xmpp.core.XmppDeviceId in project onos by opennetworkinglab.

the class XmppPubSubControllerImpl method notify.

@Override
public void notify(DeviceId deviceId, XmppEventNotification eventNotification) {
    XmppDeviceId xmppDeviceId = asXmppDeviceId(deviceId);
    xmppController.getDevice(xmppDeviceId).sendPacket(eventNotification);
}
Also used : XmppDeviceId(org.onosproject.xmpp.core.XmppDeviceId)

Example 7 with XmppDeviceId

use of org.onosproject.xmpp.core.XmppDeviceId in project onos by opennetworkinglab.

the class XmppPubSubControllerImpl method notifyError.

@Override
public void notifyError(DeviceId deviceId, XmppPubSubError error) {
    XmppDeviceId xmppDeviceId = asXmppDeviceId(deviceId);
    xmppController.getDevice(xmppDeviceId).sendError(error.asPacketError());
}
Also used : XmppDeviceId(org.onosproject.xmpp.core.XmppDeviceId)

Aggregations

XmppDeviceId (org.onosproject.xmpp.core.XmppDeviceId)7 JID (org.xmpp.packet.JID)3 DeviceId (org.onosproject.net.DeviceId)2 Hashtable (java.util.Hashtable)1 Before (org.junit.Before)1 ChassisId (org.onlab.packet.ChassisId)1 ComponentConfigService (org.onosproject.cfg.ComponentConfigService)1 CoreService (org.onosproject.core.CoreService)1 SparseAnnotations (org.onosproject.net.SparseAnnotations)1 DefaultDeviceDescription (org.onosproject.net.device.DefaultDeviceDescription)1 DeviceDescription (org.onosproject.net.device.DeviceDescription)1 ComponentContext (org.osgi.service.component.ComponentContext)1