...
property | description |
---|---|
node-id | node-id which is the source the notification |
event-time | timestamp of the notification |
type | <namespace>@<revision>:<notification-type> |
data | notification itself |
OSGi-Service
Inside the opendaylight container the websocketmanager does not implement a yang-generated RPC anymore. Instead ther is nor a more simplified and more generic interface to submit notifications to it.
Code Block |
---|
public interface WebsocketManagerService {
/**
* Send notification via Websocket to the connected clients.
* eventTime is extracted out of notification if {@link #EventInstantAware } is implemented
* @param notification
* @param nodeId
* @param eventType
*/
void sendNotification(Notification notification, String nodeId, QName eventType);
/**
* Send notification via Websocket to the connected clients.
* @param notification
* @param nodeId
* @param eventType
* @param eventTime
*/
void sendNotification(Notification notification, String nodeId, QName eventType, DateAndTime eventTime);
/**
* Send notification via Websocket to the connected clients.
* @param notification
* @param nodeId
* @param eventType
*/
void sendNotification(DOMNotification notification, String nodeId, QName eventType);
/**
* Send notification via Websocket to the connected clients.
* @param notification
* @param nodeId
* @param eventType
* @param eventTime
*/
void sendNotification(DOMNotification notification, String nodeId, QName eventType, DateAndTime eventTime);
|