Sunteți pe pagina 1din 3

NOTIFIERSERVICEVERSION1.

The notification service is responsible for storing namespaces and configurations to various
notification libraries that can be called by any library within the application to fulfill a notification
objective. The configurations to the particular library instances are also stored in the Notification
Service to enable easier usage and deployment. Notification Service version 1.0 will support
SMS,Email,andanumberofXMLbasedmethodologies

Requirements
1. Storetypesofnotifications,e.g.SMS,EMAIL
2. Storedescription,namespaceandloggerinformationofthenotificationservices.
NotificationserviceswillnothandletheirownloggingbutwillusetheLog4PHPintereface
tologtotable,fileorXML
3. Allcalledservicesmustbenamespaced
4. CalledservicesmustimplementaNotifierInterface.
5. Configurationstotheserviceswillbeloadedontoanarrayandpassedtotheclassvia
interface
6. Notificationservicescanbeenabledordisabled

Overview

a)NotifierInterface:ThisServicedefinesinterfacetoanyModulethatwouldliketoissue
notificationsandlogthemviatheappropriateservice
b)LoggerService:WrapsApacheLog4PHP
c)NotificationsManager:Storesthenotificationserviceconfigurationsindatabase
c)SchedulerProducerInterface:ThisclassenablesclassesthatimplementSchedulerService
tobeproducersofmessagestothequeuingframeworkinuse(communicatedwithvia
php_stomp)
d)SchedulerLoggerInterface:ThiswrapstheApacheLog4PHPlogginglibraryforusebythe
Schedulerservices
e)LoggerInterface:WearereusingApacheLog4PHPastheloggerinterface

SERVICECLIENTS
a) Scheduler Implementers: They implement the SchedulerService interface, and notify the
listening SchedulerService of new schedules, changes to existing schedules or deletions of
schedules. The services programmed should also come with bundles that implement the
SchedulerProducerInterface which can be used by the SchedulerService to interface with the
messagingserviceinuse
b)Producers:Usingastandardinterface,theSchedulerServiceutilizesthemtoservice
requestsbySchedulerImplementersintermsofpublishingmessages
c)Consumers:Usingastandardinterface,theSchedulerServiceutilizesthemtoconsume
messagesanddotheactualwork.Theyshouldalsobeabletounderstandloggerinformationso
thattheycanproperlyupdatetheirparentwhichwillthentakethepreemptiveaction
d)Scheduler:This
REQUIREMENT DESIGN NOTES
SCHEDULERSERVICE
SCHEDULERPRODUCERINTERFACE

S-ar putea să vă placă și