|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ReliableDeliveryService
This class provides a set of core functions that service implementations need to satisfy. All services within the system need to conform to this interface. This class pertains to the reliable delivery service being provided to entities within the system. The service is responsible for among other things (a) Maintain the list of registered entities (b) Load the appropriate matching engines, depending upon the type of templates being managed. (c) Store events received onto stable storage. (d) Manage invoice events and ensure efficient negotiations with publishing entities.
Method Summary | |
---|---|
void |
addProfile(int templateId,
Profile profile)
Add a profile |
void |
addTemplateManagement(TemplateInfo templateInfo)
Add template management |
TemplateInfo |
createTemplateInfo(int templateId,
int templateType,
Object template)
Create a templateInfo |
void |
deRegisterEntity(int entityId)
Removes an entity from the list of registered entities. |
void |
deregisterEntityFromTemplate(int entityId,
int templateId)
Deregister's an entity from a managed template |
CompanionDbInfo |
getCompanionDbInfo(int templateId)
|
TemplateInfo[] |
getListOfManagedTemplates()
Returns a array containing the list of managed templates |
void |
processAckInvoiceEvent(RdAckInvoiceEntityEvent ackInvoiceEvent)
Processes an ACK invoice event received from an entity |
void |
processCompanionEvent(RdCompanionEntityEvent companionEvent)
Processes a companion event received for a previously published event |
void |
processEntityRecoveryRequest(RdRecoveryEntityRequest recoveryRequest)
|
void |
processNakInvoiceEvent(RdNakInvoiceEntityEvent nakInvoiceEvent)
Processes an nak invoice event received from an entity |
void |
processProfileUpdateRequest(RdProfileUpdateRequest profileUpdateRequest)
Process a profile update request |
void |
processPublishedEvent(NBEvent nbEvent)
Processes a published event received from an entity |
void |
processRepublishedEvent(RdRepublishedEntityEvent republishedEvent)
|
void |
recoverFromFailure()
This method is invoked the first time a stable storage starts up, which might be after a failure or after a prolonged shutdown. |
void |
registerEntity(int entityId)
|
void |
registerEntityForTemplate(int entityId,
int templateId)
Registers an entity with a managed template. |
void |
removeProfile(int templateId,
Profile profile)
|
void |
removeTemplateManagement(int templateId)
Remove template management |
void |
storeEventToStorage(NBEvent nbEvent)
Proceed to store an event onto Storage |
Method Detail |
---|
void registerEntity(int entityId) throws ServiceException
ServiceException
void deRegisterEntity(int entityId) throws ServiceException
ServiceException
TemplateInfo createTemplateInfo(int templateId, int templateType, Object template) throws ServiceException
ServiceException
void addTemplateManagement(TemplateInfo templateInfo) throws ServiceException
ServiceException
void removeTemplateManagement(int templateId) throws ServiceException
ServiceException
TemplateInfo[] getListOfManagedTemplates()
void registerEntityForTemplate(int entityId, int templateId) throws ServiceException
ServiceException
void deregisterEntityFromTemplate(int entityId, int templateId) throws ServiceException
ServiceException
void processProfileUpdateRequest(RdProfileUpdateRequest profileUpdateRequest) throws ServiceException
ServiceException
void addProfile(int templateId, Profile profile) throws ServiceException
ServiceException
void removeProfile(int templateId, Profile profile) throws ServiceException
ServiceException
void processAckInvoiceEvent(RdAckInvoiceEntityEvent ackInvoiceEvent) throws ServiceException
ServiceException
void processNakInvoiceEvent(RdNakInvoiceEntityEvent nakInvoiceEvent) throws ServiceException
ServiceException
void processPublishedEvent(NBEvent nbEvent)
void processCompanionEvent(RdCompanionEntityEvent companionEvent)
void processRepublishedEvent(RdRepublishedEntityEvent republishedEvent)
void processEntityRecoveryRequest(RdRecoveryEntityRequest recoveryRequest)
void storeEventToStorage(NBEvent nbEvent) throws ServiceException
ServiceException
void recoverFromFailure() throws ServiceException
ServiceException
CompanionDbInfo getCompanionDbInfo(int templateId)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |