|
More information: http://www.cs.berkeley.edu/~mdw/proj/seda/ | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--mdw.sandStorm.core.RateLimitingPredicate
This enqueue predicate implements input rate policing.
Constructor Summary | |
RateLimitingPredicate(SinkIF sink,
double targetRate,
int depth)
Create a new RateLimitingPredicate for the given sink, targetRate, and token bucket depth. |
Method Summary | |
boolean |
accept(QueueElementIF qel)
Returns true if the given element can be accepted into the queue. |
int |
getBucketSize()
Return the number of tokens currently in the bucket. |
int |
getDepth()
Return the current depth. |
double |
getTargetRate()
Return the current rate limit. |
void |
setDepth(int depth)
Set the bucket depth. |
void |
setTargetRate(double targetRate)
Set the rate limit. |
Methods inherited from class java.lang.Object |
|
Constructor Detail |
public RateLimitingPredicate(SinkIF sink, double targetRate, int depth)
Method Detail |
public boolean accept(QueueElementIF qel)
accept
in interface EnqueuePredicateIF
mdw.sandStorm.api.EnqueuePredicateIF
element
- The QueueElementIF
to enqueuepublic double getTargetRate()
public int getDepth()
public int getBucketSize()
public void setTargetRate(double targetRate)
public void setDepth(int depth)
|
More information: http://www.cs.berkeley.edu/~mdw/proj/seda/ | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |