cgl.narada.service.buffering
Class DefaultParams

java.lang.Object
  extended by cgl.narada.service.buffering.DefaultParams

public class DefaultParams
extends Object

Provides default vaules for the BufferingService. If parameters are not defined the configuration file, these values will be used. TOB_MaximumTotalBufferSize=2500000 TOB_MaximumNumberOfBufferEntries=10000 #In milliseconds# TOB_MaximumBufferEntryDuration=50000 TOB_BufferReleaseFactor=0.8 TOB_BufferSortingAlgorithm = MergeSort


Constructor Summary
DefaultParams()
          Generates a new DefaultParams object.
 
Method Summary
 long getEntryDuration()
          returns entry duration in milliseconds.
 int getMaxBufferSize()
          returns buffer size in bytes.
 int getMaxNumberOfEntries()
          returns maximum number of entries.
 double getReleaseFactor()
          Returns release factor for the buffer.
 String getSortingAlgo()
          Returns sorting algorithm used.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultParams

public DefaultParams()
Generates a new DefaultParams object.

Method Detail

getEntryDuration

public long getEntryDuration()
returns entry duration in milliseconds. Default is 5000 milliseconds.

Returns:
long - entry duration

getMaxBufferSize

public int getMaxBufferSize()
returns buffer size in bytes. Default is 25000000 bytes.

Returns:
int - buffer size

getMaxNumberOfEntries

public int getMaxNumberOfEntries()
returns maximum number of entries. Default is 100.

Returns:
int - maximum number of entries

getSortingAlgo

public String getSortingAlgo()
Returns sorting algorithm used. Default is "MergeSort".

Returns:
String - sorting algortithm

getReleaseFactor

public double getReleaseFactor()
Returns release factor for the buffer. Default is 0.8.

Returns:
double - release factor


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