|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcgl.narada.service.storage.mem.StorageServiceMemImpl
public class StorageServiceMemImpl
Provides a host of storage related operations that are important for ensuring reliable delivery
| Constructor Summary | |
|---|---|
StorageServiceMemImpl()
|
|
| Method Summary | |
|---|---|
void |
advanceCatenation(int catenation,
int templateId,
int entityId)
Advance the catenation associated with an entity |
void |
advanceSyncpoint(long syncpoint,
int templateId,
int entityId)
Advance the sync point associated with an entity |
long[] |
checkIfSequencesBelongToTemplate(int templateId,
long[] sequences)
This method checks to see if the sequences in the arguments belong to the specified template. |
int |
getCatenation(int templateId,
int entityId)
Get the catenation associated with an entity |
TemplateInfo[] |
getListOfManagedTemplates()
Returns a array containing the list of managed templates |
int[] |
getListOfRegisteredEntities()
Returns a list of registered entities |
int[] |
getListOfRegisteredEntities(int templateId)
Returns a list of registered entities to a given template |
Profile[] |
getListOfRegisteredProfiles(int templateId)
Returns a list of profiles registered to a given template |
long |
getSequenceNumberLastAssigned()
Returns the sequence number last assigned by the reliable delivery service |
long |
getSequenceNumberLastAssigned(int templateId)
Returns the sequence number last assigned by the reliable delivery service for a given templateId |
InventoryEvent |
getStoredEvent(long sequenceNumber)
Upon receipt of a NAK request we need to retrieve the inventory event that corresponds to |
long |
getSyncpoint(int templateId,
int entityId)
Get the syncpoint associated with an entity |
long |
getTimestamp(long sequnceNumber,
int templateId)
|
void |
processAcknowledgement(long sequenceNumber,
int entityId)
Process the acknowledgement of an event's receipt by an entity |
void |
removeEntityFromTemplate(int entityId,
int templateId)
Deregister's an entity from a managed template |
void |
removeProfile(int templateId,
Profile profile)
|
void |
removeRegisteredEntity(int entityId)
Removes a registered entity. |
void |
removeTemplateManagement(int templateId)
|
LinkedList |
retrieveMaximumSequeceNumberAndTimestamp(int temlateId)
|
LinkedList |
retrieveMinimumSequeceNumberAndTimestamp(int temlateId)
|
long[] |
retrieveMissedSequences(long startingAt,
long endingAt,
int templateId,
int entityId)
Retrieves a list of missed sequences between the specified range of sequence numbers. |
long[] |
retrieveSequences(long startingAt,
long endingAt,
int templateId,
int maxOccur)
Between the sequence range specified, this method returns all sequences which belong to the specified template. |
LinkedList |
retrieveSequencesAndTimestamps(int templateId)
|
LinkedList |
retrieveSequencesAndTimestamps(long startingTimestamp,
long endingTimestamp,
int templateId)
|
LinkedList |
retrieveSequencesAndTimestampsStartingAt(long startingSequenceNumber,
long endingTimestamp,
int templateId)
|
LinkedList |
retrieveSequencesByTimestamps(long startingTimestamp,
long endingTimestamp,
int templateId)
|
long |
retrieveTimestamp(int templateId,
long sequenceNumber)
|
void |
store(CompanionDbInfo companionDbInfo,
InventoryEvent inventoryEvent,
SequenceDestinations sequenceDestinations)
This method should not return unless the event has been written to stable storage |
void |
storeEntityForTemplate(int entityId,
int templateId)
|
void |
storeProfile(int templateId,
Profile profile)
|
void |
storeRegisteredEntity(int entityId)
Stores a registered entity |
void |
storeTemplate(TemplateInfo templateInfo)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StorageServiceMemImpl()
| Method Detail |
|---|
public void storeProfile(int templateId,
Profile profile)
throws ServiceException
storeProfile in interface StorageServiceServiceException
public void removeProfile(int templateId,
Profile profile)
throws ServiceException
removeProfile in interface StorageServiceServiceException
public void storeRegisteredEntity(int entityId)
throws ServiceException
storeRegisteredEntity in interface StorageServiceServiceException
public void removeRegisteredEntity(int entityId)
throws ServiceException
removeRegisteredEntity in interface StorageServiceServiceException
public void storeTemplate(TemplateInfo templateInfo)
throws ServiceException
storeTemplate in interface StorageServiceServiceException
public void removeTemplateManagement(int templateId)
throws ServiceException
removeTemplateManagement in interface StorageServiceServiceException
public void storeEntityForTemplate(int entityId,
int templateId)
throws ServiceException
storeEntityForTemplate in interface StorageServiceServiceException
public void removeEntityFromTemplate(int entityId,
int templateId)
throws ServiceException
removeEntityFromTemplate in interface StorageServiceServiceException
public int[] getListOfRegisteredEntities()
throws ServiceException
getListOfRegisteredEntities in interface StorageServiceServiceException
public int[] getListOfRegisteredEntities(int templateId)
throws ServiceException
getListOfRegisteredEntities in interface StorageServiceServiceException
public Profile[] getListOfRegisteredProfiles(int templateId)
throws ServiceException
getListOfRegisteredProfiles in interface StorageServiceServiceException
public TemplateInfo[] getListOfManagedTemplates()
throws ServiceException
getListOfManagedTemplates in interface StorageServiceServiceException
public void store(CompanionDbInfo companionDbInfo,
InventoryEvent inventoryEvent,
SequenceDestinations sequenceDestinations)
throws ServiceException
store in interface StorageServiceServiceException
public InventoryEvent getStoredEvent(long sequenceNumber)
throws ServiceException
getStoredEvent in interface StorageServiceServiceException
public void processAcknowledgement(long sequenceNumber,
int entityId)
throws ServiceException
processAcknowledgement in interface StorageServiceServiceException
public long[] retrieveMissedSequences(long startingAt,
long endingAt,
int templateId,
int entityId)
throws ServiceException
retrieveMissedSequences in interface StorageServiceServiceException
public void advanceSyncpoint(long syncpoint,
int templateId,
int entityId)
throws ServiceException
advanceSyncpoint in interface StorageServiceServiceException
public long getSyncpoint(int templateId,
int entityId)
throws ServiceException
getSyncpoint in interface StorageServiceServiceException
public void advanceCatenation(int catenation,
int templateId,
int entityId)
throws ServiceException
advanceCatenation in interface StorageServiceServiceException
public int getCatenation(int templateId,
int entityId)
throws ServiceException
getCatenation in interface StorageServiceServiceException
public long getSequenceNumberLastAssigned()
throws ServiceException
getSequenceNumberLastAssigned in interface StorageServiceServiceException
public long getSequenceNumberLastAssigned(int templateId)
throws ServiceException
getSequenceNumberLastAssigned in interface StorageServiceServiceException
public long[] checkIfSequencesBelongToTemplate(int templateId,
long[] sequences)
throws ServiceException
StorageService
checkIfSequencesBelongToTemplate in interface StorageServiceServiceException
public long[] retrieveSequences(long startingAt,
long endingAt,
int templateId,
int maxOccur)
throws ServiceException
StorageService
retrieveSequences in interface StorageServiceServiceException
public LinkedList retrieveSequencesAndTimestamps(int templateId)
throws ServiceException
retrieveSequencesAndTimestamps in interface StorageServiceServiceException
public LinkedList retrieveSequencesAndTimestamps(long startingTimestamp,
long endingTimestamp,
int templateId)
throws ServiceException
retrieveSequencesAndTimestamps in interface StorageServiceServiceException
public long retrieveTimestamp(int templateId,
long sequenceNumber)
throws ServiceException
retrieveTimestamp in interface StorageServiceServiceException
public LinkedList retrieveSequencesAndTimestampsStartingAt(long startingSequenceNumber,
long endingTimestamp,
int templateId)
throws ServiceException
retrieveSequencesAndTimestampsStartingAt in interface StorageServiceServiceException
public LinkedList retrieveSequencesByTimestamps(long startingTimestamp,
long endingTimestamp,
int templateId)
throws ServiceException
retrieveSequencesByTimestamps in interface StorageServiceServiceException
public long getTimestamp(long sequnceNumber,
int templateId)
throws ServiceException
getTimestamp in interface StorageServiceServiceException
public LinkedList retrieveMinimumSequeceNumberAndTimestamp(int temlateId)
throws ServiceException
retrieveMinimumSequeceNumberAndTimestamp in interface StorageServiceServiceException
public LinkedList retrieveMaximumSequeceNumberAndTimestamp(int temlateId)
throws ServiceException
retrieveMaximumSequeceNumberAndTimestamp in interface StorageServiceServiceException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||