NotificationService should
register itself in the OSGi service registry as a service.
| Modifier and Type | Method and Description |
|---|---|
| public void | sendNotification(String
the principal name which is the recipient of this
notification, can be principal, int nullthe alert code, can be 0 if not needed code, String optional field that contains the correlation identifier
of an associated exec command, can be correlator, AlertItem[] null if not neededthe data of the alert items carried in this alert, can be
items)null or empty if not neededSends a notification to a named principal. |
| sendNotification | back to summary |
|---|---|
| public void sendNotification(String principal, int code, String correlator, AlertItem[] items) throws DmtException Sends a notification to a named principal. It is the responsibility of
the
In remotely initiated sessions the principal name identifies the remote
server that created the session, this can be obtained using the session's
The principal name may be omitted if the client does not know the principal name. Even in this case the routing might be possible if the Notification Service finds an appropriate default destination (for example if it is only connected to one protocol adapter, which is only connected to one management server). Since sending the notification and receiving acknowledgment for it is potentially a very time-consuming operation, notifications are sent asynchronously. This method should attempt to ensure that the notification can be sent successfully, and should throw an exception if it detects any problems. If the method returns without error, the notification is accepted for sending and the implementation must make a best-effort attempt to deliver it.
In case the notification is an asynchronous response to a previous
In order to send a notification using this method, the caller must have
an
When this method is called with null correlator, null or empty AlertItem
array, and a 0 code as values, it should send a protocol specific default
notification to initiate a management session. For example, in case of
OMA DM this is alert 1201 "Client Initiated Session". The
| |