|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcgl.narada.service.replay.ReplayService
cgl.narada.service.replay.impl.ReplayServiceImpl
public class ReplayServiceImpl
The Replay Service interface that is used by the consumers to play back events that were previously archived. Replays are initiated by ReplayRequests.
| Method Summary | |
|---|---|
void |
deregisterSubscriptionsForTemplate(int templateId)
This method de-registers subscriptions for a template |
static ReplayService |
getInstance()
|
LinkedList |
getMaximumSequenceNumberAndTimestamp(int templateId)
|
LinkedList |
getMinimumSequenceNumberAndTimestamp(int templateId)
|
long |
getStoredEventTimestamp(long seqNumber)
|
void |
initialize(int replayEntityId,
StorageService storageService,
Hashtable templatesAndEntities)
|
boolean |
isInitialized()
|
void |
onEvent(NBEvent nbEvent)
Upon the receipt of an event which has satisfied all the constraints, if any were provided, that needed to be satisfied prior to delivery |
void |
onServiceException(ServiceException serviceException)
end onEvent() |
void |
processReplayRequest(ReplayRequest replayRequest)
Process a replay request |
void |
registerSubscriptionsForTemplate(int templateId)
This method registers subscriptions for templates |
void |
setMaximumNumberOfPendingRequests(int maxPendingRequests)
Set a limit on the maximum number of pending requests |
void |
setMaximumNumberOfProfilesInReplayRequest(int maxConstraints)
Set the maximum number of profile constraints within a replay request |
void |
setMaximumNumberOfSequencesInReplay(int maxNumOfSequences)
Set Maximum number of sequences in a replay |
void |
setSequenceRangeInReplayRequest(int maxSequenceRange)
Set the upper bound for the maximum range in replay sequences |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public void initialize(int replayEntityId,
StorageService storageService,
Hashtable templatesAndEntities)
throws ServiceException
initialize in class ReplayServiceServiceExceptionpublic boolean isInitialized()
isInitialized in class ReplayServicepublic static ReplayService getInstance()
public void registerSubscriptionsForTemplate(int templateId)
throws ServiceException
registerSubscriptionsForTemplate in class ReplayServiceServiceException
public void deregisterSubscriptionsForTemplate(int templateId)
throws ServiceException
deregisterSubscriptionsForTemplate in class ReplayServiceServiceExceptionpublic void processReplayRequest(ReplayRequest replayRequest)
processReplayRequest in class ReplayServicepublic void setSequenceRangeInReplayRequest(int maxSequenceRange)
setSequenceRangeInReplayRequest in class ReplayServicepublic void setMaximumNumberOfProfilesInReplayRequest(int maxConstraints)
setMaximumNumberOfProfilesInReplayRequest in class ReplayServicepublic void setMaximumNumberOfSequencesInReplay(int maxNumOfSequences)
setMaximumNumberOfSequencesInReplay in class ReplayServicepublic void setMaximumNumberOfPendingRequests(int maxPendingRequests)
setMaximumNumberOfPendingRequests in class ReplayServicepublic long getStoredEventTimestamp(long seqNumber)
public LinkedList getMinimumSequenceNumberAndTimestamp(int templateId)
public LinkedList getMaximumSequenceNumberAndTimestamp(int templateId)
public void onEvent(NBEvent nbEvent)
NBEventListener
onEvent in interface NBEventListenerpublic void onServiceException(ServiceException serviceException)
onServiceException in interface ServiceExceptionListener
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||