cgl.narada.service.replay
Class ReplayService

java.lang.Object
  extended by cgl.narada.service.replay.ReplayService
Direct Known Subclasses:
ReplayServiceImpl

public abstract class ReplayService
extends Object

The Replay Service interface that is used by the consumers to play back events that were previously archived. Replays are initiated by ReplayRequests.


Constructor Summary
ReplayService()
           
 
Method Summary
abstract  void deregisterSubscriptionsForTemplate(int templateId)
          This method de-registers subscriptions for a template
static ReplayService getInstance()
           
abstract  void initialize(int replayEntityId, StorageService storageService, Hashtable templatesAndEntities)
           
abstract  boolean isInitialized()
           
abstract  void processReplayRequest(ReplayRequest request)
          Process a replay request
abstract  void registerSubscriptionsForTemplate(int templateId)
          This method registers subscriptions for templates
abstract  void setMaximumNumberOfPendingRequests(int maxPending)
          Set a limit on the maximum number of pending requests
abstract  void setMaximumNumberOfProfilesInReplayRequest(int maxConstraints)
          Set the maximum number of profile constraints within a replay request
abstract  void setMaximumNumberOfSequencesInReplay(int maxNumOfSequences)
          Set Maximum number of sequences in a replay
abstract  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
 

Constructor Detail

ReplayService

public ReplayService()
Method Detail

getInstance

public static ReplayService getInstance()

initialize

public abstract void initialize(int replayEntityId,
                                StorageService storageService,
                                Hashtable templatesAndEntities)
                         throws ServiceException
Throws:
ServiceException

isInitialized

public abstract boolean isInitialized()

registerSubscriptionsForTemplate

public abstract void registerSubscriptionsForTemplate(int templateId)
                                               throws ServiceException
This method registers subscriptions for templates

Throws:
ServiceException

deregisterSubscriptionsForTemplate

public abstract void deregisterSubscriptionsForTemplate(int templateId)
                                                 throws ServiceException
This method de-registers subscriptions for a template

Throws:
ServiceException

processReplayRequest

public abstract void processReplayRequest(ReplayRequest request)
Process a replay request


setSequenceRangeInReplayRequest

public abstract void setSequenceRangeInReplayRequest(int maxSequenceRange)
Set the upper bound for the maximum range in replay sequences


setMaximumNumberOfProfilesInReplayRequest

public abstract void setMaximumNumberOfProfilesInReplayRequest(int maxConstraints)
Set the maximum number of profile constraints within a replay request


setMaximumNumberOfSequencesInReplay

public abstract void setMaximumNumberOfSequencesInReplay(int maxNumOfSequences)
Set Maximum number of sequences in a replay


setMaximumNumberOfPendingRequests

public abstract void setMaximumNumberOfPendingRequests(int maxPending)
Set a limit on the maximum number of pending requests



For comments and suggestions please send e-mail to The NaradaBrokering Project