Class RSSConnector.ThrottleSpec
- java.lang.Object
-
- org.apache.manifoldcf.crawler.connectors.rss.RSSConnector.ThrottleSpec
-
- All Implemented Interfaces:
org.apache.manifoldcf.connectorcommon.interfaces.IThrottleSpec
- Enclosing class:
- RSSConnector
protected static class RSSConnector.ThrottleSpec extends java.lang.Object implements org.apache.manifoldcf.connectorcommon.interfaces.IThrottleSpecThe throttle specification class. Each server name is a different bin in this model.
-
-
Field Summary
Fields Modifier and Type Field Description protected intmaxOpenConnectionsPerServerprotected doubleminimumMillisecondsPerBytePerServerprotected longminimumMillisecondsPerFetchPerServer
-
Constructor Summary
Constructors Constructor Description ThrottleSpec(int maxOpenConnectionsPerServer, long minimumMillisecondsPerFetchPerServer, double minimumMillisecondsPerBytePerServer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetMaxOpenConnections(java.lang.String binName)Given a bin name, find the max open connections to use for that bin.doublegetMinimumMillisecondsPerByte(java.lang.String binName)Look up minimum milliseconds per byte for a bin.longgetMinimumMillisecondsPerFetch(java.lang.String binName)Look up minimum milliseconds for a fetch for a bin.
-
-
-
Method Detail
-
getMaxOpenConnections
public int getMaxOpenConnections(java.lang.String binName)
Given a bin name, find the max open connections to use for that bin.- Specified by:
getMaxOpenConnectionsin interfaceorg.apache.manifoldcf.connectorcommon.interfaces.IThrottleSpec- Returns:
- Integer.MAX_VALUE if no limit found.
-
getMinimumMillisecondsPerByte
public double getMinimumMillisecondsPerByte(java.lang.String binName)
Look up minimum milliseconds per byte for a bin.- Specified by:
getMinimumMillisecondsPerBytein interfaceorg.apache.manifoldcf.connectorcommon.interfaces.IThrottleSpec- Returns:
- 0.0 if no limit found.
-
getMinimumMillisecondsPerFetch
public long getMinimumMillisecondsPerFetch(java.lang.String binName)
Look up minimum milliseconds for a fetch for a bin.- Specified by:
getMinimumMillisecondsPerFetchin interfaceorg.apache.manifoldcf.connectorcommon.interfaces.IThrottleSpec- Returns:
- 0 if no limit found.
-
-