|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.nitido.nim.NiMKernelService
com.nitido.nim.NotificationService
com.nitido.nimx.services.notification.NotificationServiceStub
public class NotificationServiceStub
This is a stub implementation of the notification service which throws an exception when any of its methods are invoked.
Field Summary |
---|
Constructor Summary | |
---|---|
NotificationServiceStub(NiMKernelServiceVisa visa)
|
Method Summary | |
---|---|
NotificationStatus |
getStatus(java.lang.String ticket)
Retrieves the latest status for a given status ticket. |
java.lang.String |
sendNotification(NotificationMessage msg)
Send out the notification message to the recipient(s) supplied in the message object. |
void |
signalBirth()
Invoked by the system's listener when the whole server is starting up. |
void |
signalDeath()
Invoked by the system's listener when the whole server is shutting down. |
Methods inherited from class com.nitido.nim.NotificationService |
---|
init |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NotificationServiceStub(NiMKernelServiceVisa visa)
Method Detail |
---|
public NotificationStatus getStatus(java.lang.String ticket) throws StatusNotFoundException
NotificationService
getStatus
in class NotificationService
ticket
- the ticket ID that was returned by the sendNotification
method
StatusNotFoundException
- if the ticket does not match any tickets
known to the servicepublic java.lang.String sendNotification(NotificationMessage msg) throws NotificationServiceException
NotificationService
sendNotification
in class NotificationService
msg
- the notification message object containing the recipient(s)
and the message content.
NotificationServiceException
- thrown for one of two reasons
- unable to create a status ticket to return to the client
- invalid data in the notification message objectpublic void signalBirth()
NotificationService
signalBirth
in class NotificationService
public void signalDeath()
NotificationService
signalDeath
in class NotificationService
|
Nitido NiM 2.5 Java API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1999-2009 Nitido Inc. Proprietary and Confidential. All Rights Reserved.