org.apache.manifoldcf.crawler.interfaces
Class QueueTracker.ThrottleLimitSpec

java.lang.Object
  extended by org.apache.manifoldcf.crawler.interfaces.QueueTracker.ThrottleLimitSpec
Enclosing class:
QueueTracker

protected static class QueueTracker.ThrottleLimitSpec
extends java.lang.Object

This is a class which describes an individual throttle limit, in fetches per millisecond.


Field Summary
protected  double maxRate
          The fetch limit for all bins matching that regexp, in fetches per millisecond
protected  java.util.regex.Pattern regexp
          Regexp
 
Constructor Summary
QueueTracker.ThrottleLimitSpec(java.lang.String regexp, double maxRate)
          Constructor
 
Method Summary
 double getMaxRate()
          Get the max count
 java.util.regex.Pattern getRegexp()
          Get the regexp.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

regexp

protected java.util.regex.Pattern regexp
Regexp


maxRate

protected double maxRate
The fetch limit for all bins matching that regexp, in fetches per millisecond

Constructor Detail

QueueTracker.ThrottleLimitSpec

public QueueTracker.ThrottleLimitSpec(java.lang.String regexp,
                                      double maxRate)
                               throws java.util.regex.PatternSyntaxException
Constructor

Throws:
java.util.regex.PatternSyntaxException
Method Detail

getRegexp

public java.util.regex.Pattern getRegexp()
Get the regexp.


getMaxRate

public double getMaxRate()
Get the max count