org.apache.manifoldcf.crawler.connectors.webcrawler
Class ThrottleDescription.ThrottleItem

java.lang.Object
  extended by org.apache.manifoldcf.crawler.connectors.webcrawler.ThrottleDescription.ThrottleItem
Enclosing class:
ThrottleDescription

protected static class ThrottleDescription.ThrottleItem
extends java.lang.Object

Class representing an individual throttle item.


Field Summary
protected  java.lang.Integer maxOpenConnections
          The maximum open connections, or null if no limit.
protected  java.lang.Double minimumMillisecondsPerByte
          The minimum milliseconds between bytes, or null if no limit.
protected  java.lang.Long minimumMillisecondsPerFetch
          The minimum milliseconds per fetch, or null if no limit
protected  java.util.regex.Pattern pattern
          The bin-matching pattern.
 
Constructor Summary
ThrottleDescription.ThrottleItem(java.util.regex.Pattern p)
          Constructor.
 
Method Summary
 java.lang.Integer getMaxOpenConnections()
          Get maximum open connections.
 java.lang.Double getMinimumMillisecondsPerByte()
          Get minimum milliseconds per byte.
 java.lang.Long getMinimumMillisecondsPerFetch()
          Get minimum milliseconds per fetch
 java.util.regex.Pattern getPattern()
          Get the pattern.
 void setMaxOpenConnections(java.lang.Integer value)
          Set maximum open connections.
 void setMinimumMillisecondsPerByte(java.lang.Double value)
          Set minimum milliseconds per byte.
 void setMinimumMillisecondsPerFetch(java.lang.Long value)
          Set minimum milliseconds per fetch
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pattern

protected java.util.regex.Pattern pattern
The bin-matching pattern.


minimumMillisecondsPerByte

protected java.lang.Double minimumMillisecondsPerByte
The minimum milliseconds between bytes, or null if no limit.


minimumMillisecondsPerFetch

protected java.lang.Long minimumMillisecondsPerFetch
The minimum milliseconds per fetch, or null if no limit


maxOpenConnections

protected java.lang.Integer maxOpenConnections
The maximum open connections, or null if no limit.

Constructor Detail

ThrottleDescription.ThrottleItem

public ThrottleDescription.ThrottleItem(java.util.regex.Pattern p)
Constructor.

Method Detail

getPattern

public java.util.regex.Pattern getPattern()
Get the pattern.


setMinimumMillisecondsPerByte

public void setMinimumMillisecondsPerByte(java.lang.Double value)
Set minimum milliseconds per byte.


getMinimumMillisecondsPerByte

public java.lang.Double getMinimumMillisecondsPerByte()
Get minimum milliseconds per byte.


setMinimumMillisecondsPerFetch

public void setMinimumMillisecondsPerFetch(java.lang.Long value)
Set minimum milliseconds per fetch


getMinimumMillisecondsPerFetch

public java.lang.Long getMinimumMillisecondsPerFetch()
Get minimum milliseconds per fetch


setMaxOpenConnections

public void setMaxOpenConnections(java.lang.Integer value)
Set maximum open connections.


getMaxOpenConnections

public java.lang.Integer getMaxOpenConnections()
Get maximum open connections.