|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface BufferingService
This interface encapsulates all the functiones needed by the buffering service. The buffering service provides a time based ordering of events timestamped by the NB Timing Service.
| Method Summary | |
|---|---|
boolean |
getEnforceTimeOrderingConsistency(Object contentSynopsis)
Indicates if the buffering service enforces time ordering conistency |
int |
getMaximumBufferSize()
Returns maximum buffer size.This corresponds to the total size of all the payloads associated with events in the buffer. |
int |
getMaximumNumberOfEntries()
Returns the maximum number of entries |
double |
getReleaseFactor()
Returns the release factor of the buffer |
String |
getSortingScheme()
Returns the current sorting scheme |
int |
getTotalBufferSize()
Returns the total size of the buffer. |
int |
getTotalNumberOfEntries()
Retrieves the maximum duration after which the oldest element in the buffer is released public long getBufferEntryMaximumDuration(); /** Returns the total number of entries currently present within the buffer |
int |
releaseAllEntries()
Releases all the entries currently present in the buffer. |
int |
releaseAllEntries(long timestamp)
Releases all entries that occured before the specified timestamp. |
int |
releaseAllEntries(Object contentSynopsis)
Releases all the entries with the specified content synopsis. |
void |
setBufferEntryMaximumDuration(long entryAge)
Sets the maximum duration after which the oldest element in the buffer is released |
void |
setEnforceTimeOrderingConsistency(Object contentSynopsis,
boolean enforce)
Ensures that events are ordered while enforcing timing consistencies. |
void |
setMaximumBufferSize(int maxBufferSize)
Sets the maximum buffer size. |
void |
setMaximumNumberOfEntries(int maxEntries)
Sets the maximum number of entries in the buffering service. |
void |
setReleaseFactor(double factor)
Release facotr is a double number between 0 - 1. |
void |
setSortingScheme(String sortAlgo)
Sets the scheme for sorting events in the buffers |
void |
terminateService()
|
void |
timeOrderEvent(QosEvent qosEvent)
Takes QosEvent and puts it into the buffer. |
| Method Detail |
|---|
void setSortingScheme(String sortAlgo)
throws ServiceException
ServiceExceptionString getSortingScheme()
void setMaximumNumberOfEntries(int maxEntries)
throws ServiceException
ServiceExceptionint getMaximumNumberOfEntries()
void setReleaseFactor(double factor)
double getReleaseFactor()
void setEnforceTimeOrderingConsistency(Object contentSynopsis,
boolean enforce)
boolean getEnforceTimeOrderingConsistency(Object contentSynopsis)
void setMaximumBufferSize(int maxBufferSize)
throws ServiceException
ServiceExceptionint getMaximumBufferSize()
void setBufferEntryMaximumDuration(long entryAge)
int getTotalNumberOfEntries()
int getTotalBufferSize()
int releaseAllEntries()
int releaseAllEntries(Object contentSynopsis)
int releaseAllEntries(long timestamp)
void timeOrderEvent(QosEvent qosEvent)
void terminateService()
throws ServiceException
ServiceException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||