public class NotifierServiceImpl extends java.lang.Object implements NotifierService
Constructor and Description |
---|
NotifierServiceImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addCommandConfigFactoryEvent(java.lang.String readerFactoryID,
java.lang.String commandConfigFactoryID)
Send a notification that a CommandConfigurationFactory has become
available
|
void |
addCommandEvent(java.lang.String commandID)
Send a notification that a command was added.
|
void |
addReaderEvent(java.lang.String readerID)
Send a notification that a Reader was added
|
void |
addReaderFactoryEvent(java.lang.String readerFactoryID)
Send a notification that a reader factory became available
|
void |
addSessionEvent(java.lang.String readerID,
java.lang.String sessionID)
Send a notification that a Session has been added
|
void |
attributesChanged(java.lang.String configurationID,
javax.management.AttributeList attributes)
Called when attributes of a configuration change
|
void |
jobDeleted(java.lang.String readerID,
java.lang.String sessionID,
java.lang.Integer jobID)
Send a notification that a job has been killed.
|
void |
jobSubmitted(java.lang.String readerID,
java.lang.String sessionID,
java.lang.Integer jobID,
java.lang.String commandID,
boolean recurring)
Send a notification that a job has been submitted to a session for
execution
|
void |
removeCommandConfigFactoryEvent(java.lang.String readerFactoryID,
java.lang.String commandFactoryID)
Send a notification that a CommandCofifugrationFactory has become
unavailable.
|
void |
removeCommandEvent(java.lang.String commandID)
Send a notification that a command was removed
|
void |
removeReaderEvent(java.lang.String readerID)
Send a notification that a reader was removed
|
void |
removeReaderFactoryEvent(java.lang.String readerFactoryID)
Send a notification that a reader factory became unavailable.
|
void |
removeSessionEvent(java.lang.String readerID,
java.lang.String sessionID)
Send a notification that a session has been removed
|
void |
sessionStatusChanged(java.lang.String readerID,
java.lang.String sessionID,
SessionStatus sessionStatus)
Send a notification that the state of a session has changed
|
void |
setExtNotificationDest(javax.jms.Destination extNotificationDest)
called by Spring
|
void |
setExtNotificationTemplate(org.springframework.jms.core.JmsTemplate extNotificationTemplate)
Called by Spring
|
void |
setExtTagsDest(javax.jms.Destination extTagsDest)
called by Spring
|
void |
tagSeen(ReadCycle cycle) |
public void setExtNotificationTemplate(org.springframework.jms.core.JmsTemplate extNotificationTemplate)
exextNotificationTemplate
- the exextNotificationQueue to setpublic void setExtNotificationDest(javax.jms.Destination extNotificationDest)
extNotificationDest
- the extNotificationDest to setpublic void setExtTagsDest(javax.jms.Destination extTagsDest)
extNotificationDest
- the extNotificationDest to setpublic void addCommandEvent(java.lang.String commandID)
NotifierService
addCommandEvent
in interface NotifierService
commandID
- the ID of the commandpublic void addReaderEvent(java.lang.String readerID)
NotifierService
addReaderEvent
in interface NotifierService
readerID
- The ID of the readerpublic void removeCommandEvent(java.lang.String commandID)
NotifierService
removeCommandEvent
in interface NotifierService
commandID
- The ID of the commandpublic void removeReaderEvent(java.lang.String readerID)
NotifierService
removeReaderEvent
in interface NotifierService
readerID
- the ID of the readerpublic void addSessionEvent(java.lang.String readerID, java.lang.String sessionID)
NotifierService
addSessionEvent
in interface NotifierService
readerID
- The ID of the reader to which the session was addedsessionID
- The ID of the sessionpublic void removeSessionEvent(java.lang.String readerID, java.lang.String sessionID)
NotifierService
removeSessionEvent
in interface NotifierService
readerID
- The ID of the reader from which the session was removedsessionID
- The ID of the session that was removedpublic void addReaderFactoryEvent(java.lang.String readerFactoryID)
NotifierService
addReaderFactoryEvent
in interface NotifierService
readerFactoryID
- The ID of the readerFactory that became availablepublic void removeReaderFactoryEvent(java.lang.String readerFactoryID)
NotifierService
removeReaderFactoryEvent
in interface NotifierService
readerFactoryID
- The ID of the readerFactory that is no longer availablepublic void sessionStatusChanged(java.lang.String readerID, java.lang.String sessionID, SessionStatus sessionStatus)
NotifierService
sessionStatusChanged
in interface NotifierService
readerID
- The ID of the reader that contains the sessionsessionID
- The ID of the session that changedsessionStatus
- The new state of the sessionpublic void addCommandConfigFactoryEvent(java.lang.String readerFactoryID, java.lang.String commandConfigFactoryID)
NotifierService
addCommandConfigFactoryEvent
in interface NotifierService
readerFactoryID
- the ID of the readerFactory this command configuration factory
works withcommandConfigFactoryID
- The ID of the command Configuration factorypublic void removeCommandConfigFactoryEvent(java.lang.String readerFactoryID, java.lang.String commandFactoryID)
NotifierService
removeCommandConfigFactoryEvent
in interface NotifierService
readerFactoryID
- the ID of the readerFactory the command factory works withpublic void jobDeleted(java.lang.String readerID, java.lang.String sessionID, java.lang.Integer jobID)
NotifierService
jobDeleted
in interface NotifierService
readerID
- The ID of the reader which contains the sessionsessionID
- The ID of the session the job was executing onjobID
- The ID of the job that was killedpublic void jobSubmitted(java.lang.String readerID, java.lang.String sessionID, java.lang.Integer jobID, java.lang.String commandID, boolean recurring)
NotifierService
jobSubmitted
in interface NotifierService
readerID
- The ID of the reader that has the sessionsessionID
- The ID of the session which the job is executing onjobID
- The ID of the jobcommandID
- The ID of the command configuration which produced the jobrecurring
- True if the command is a recurring commandpublic void attributesChanged(java.lang.String configurationID, javax.management.AttributeList attributes)
NotifierService
attributesChanged
in interface NotifierService
configurationID
- the ID of the configurationattributes
- The changed attributespublic void tagSeen(ReadCycle cycle)
tagSeen
in interface NotifierService