|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcgl.narada.service.buffering.BufferingServiceImpl
public class BufferingServiceImpl
This is the implementation of the BufferingService interface.
| Constructor Summary | |
|---|---|
BufferingServiceImpl(QosServiceImpl qosServiceImpl)
Generates a new BufferingServiceImpl object. |
|
| Method Summary | |
|---|---|
long |
getBufferEntryMaximumDuration()
Retrieves the maximum duration after which the oldest element in the buffer is released |
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()
Returns the total number of entries currently present within the buffer. |
void |
loadDefaults()
Reads default values from DefaultParams class. |
void |
loadProperties()
Reads required params from a properties class. |
int |
releaseAllEntries()
Releases all the entries currently present in the buffer. |
int |
releaseAllEntries(double releaseFactor)
. |
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 |
startBufferingService()
Starts buffering service |
void |
stopBufferingService()
Stops buffering service |
void |
terminateService()
|
void |
timeOrderEvent(QosEvent qosEvent)
Takes QosEvent and puts it into the buffer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BufferingServiceImpl(QosServiceImpl qosServiceImpl)
qosServiceImpl - QosServiceImpl| Method Detail |
|---|
public void setBufferEntryMaximumDuration(long entryAge)
setBufferEntryMaximumDuration in interface BufferingServiceentryAge - long - maximum buffer entry durationpublic long getBufferEntryMaximumDuration()
public void setEnforceTimeOrderingConsistency(Object contentSynopsis,
boolean enforce)
setEnforceTimeOrderingConsistency in interface BufferingServicecontentSynopsis - Object - content synopsisenforce - boolean - strict consistency enforcementpublic boolean getEnforceTimeOrderingConsistency(Object contentSynopsis)
getEnforceTimeOrderingConsistency in interface BufferingServicecontentSynopsis - Object - content synopsis
public void setMaximumBufferSize(int maxBufferSize)
throws ServiceException
setMaximumBufferSize in interface BufferingServicemaxBufferSize - int - maximum buffer size in bytes
ServiceExceptionpublic int getMaximumBufferSize()
getMaximumBufferSize in interface BufferingService
public void setMaximumNumberOfEntries(int maxEntries)
throws ServiceException
setMaximumNumberOfEntries in interface BufferingServicemaxEntries - int - maximum number of entries
ServiceExceptionpublic int getMaximumNumberOfEntries()
getMaximumNumberOfEntries in interface BufferingServicepublic void setReleaseFactor(double factor)
setReleaseFactor in interface BufferingServicefactor - double - release factorpublic double getReleaseFactor()
getReleaseFactor in interface BufferingService
public void setSortingScheme(String sortAlgo)
throws ServiceException
setSortingScheme in interface BufferingServicesortAlgo - String - String representation of the sorting algorithm.
MergeSort, QuickSort, etc.
ServiceExceptionpublic String getSortingScheme()
getSortingScheme in interface BufferingServicepublic int getTotalBufferSize()
getTotalBufferSize in interface BufferingServicepublic int getTotalNumberOfEntries()
getTotalNumberOfEntries in interface BufferingServicepublic void loadDefaults()
public void loadProperties()
public int releaseAllEntries()
releaseAllEntries in interface BufferingServicepublic int releaseAllEntries(Object contentSynopsis)
releaseAllEntries in interface BufferingServicecontentSynopsis - Object - content synopsis
public int releaseAllEntries(long timestamp)
releaseAllEntries in interface BufferingServicetimestamp - long - upper limit timestamp value of the entries to be
released
public int releaseAllEntries(double releaseFactor)
public void startBufferingService()
public void stopBufferingService()
public void terminateService()
terminateService in interface BufferingServicepublic void timeOrderEvent(QosEvent qosEvent)
timeOrderEvent in interface BufferingServiceqosEvent - - QosEvent
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||