|
![]() |
|||||||||
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
public abstract class NotificationService
The NotificationService is the NiMKernel component responsible for sending notification to the user. It is a compulsory service.
Field Summary |
---|
Constructor Summary | |
---|---|
NotificationService(NiMKernelServiceVisa visa)
|
Method Summary | |
---|---|
abstract NotificationStatus |
getStatus(java.lang.String ticket)
Retrieves the latest status for a given status ticket. |
protected void |
init(NiMKernel kernel,
ConfigurationService confService)
This method is used to initialize the kernel service. |
abstract java.lang.String |
sendNotification(NotificationMessage msg)
Send out the notification message to the recipient(s) supplied in the message object. |
abstract void |
signalBirth()
Invoked by the system's listener when the whole server is starting up. |
abstract void |
signalDeath()
Invoked by the system's listener when the whole server is shutting down. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NotificationService(NiMKernelServiceVisa visa)
Method Detail |
---|
protected void init(NiMKernel kernel, ConfigurationService confService) throws InitializationFailedException, NiMException
NiMKernelService
init
in class NiMKernelService
kernel
- Reference to the NiMKernel object that instantiated the
service.confService
- A reference to the configuration service. All the service
implementations (except ConfigurationService)
should retrieve the setting information from it.
InitializationFailedException
- If unable to initialize the kernel service.
NiMException
- If service initialization can not be done due to failure in
establish a connection to the back-end service. Not all
service implementation will throw this exception.public abstract java.lang.String sendNotification(NotificationMessage msg) throws NotificationServiceException
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 abstract NotificationStatus getStatus(java.lang.String ticket) throws StatusNotFoundException
ticket
- the ticket ID that was returned by the sendNotification
method
StatusNotFoundException
- if the ticket does not match any tickets
known to the servicepublic abstract void signalBirth()
public abstract void signalDeath()
|
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.