public class ThrottleDescription
extends java.lang.Object
implements org.apache.manifoldcf.connectorcommon.interfaces.IThrottleSpec
| Modifier and Type | Class and Description |
|---|---|
protected static class |
ThrottleDescription.ThrottleItem
Class representing an individual throttle item.
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
_rcsid |
protected java.util.Map<java.lang.String,ThrottleDescription.ThrottleItem> |
patternHash
This is the hash that contains everything.
|
| Constructor and Description |
|---|
ThrottleDescription(org.apache.manifoldcf.core.interfaces.ConfigParams configData)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getMaxOpenConnections(java.lang.String binName)
Given a bin name, find the max open connections to use for that bin.
|
double |
getMinimumMillisecondsPerByte(java.lang.String binName)
Look up minimum milliseconds per byte for a bin.
|
long |
getMinimumMillisecondsPerFetch(java.lang.String binName)
Look up minimum milliseconds for a fetch for a bin.
|
public static final java.lang.String _rcsid
protected java.util.Map<java.lang.String,ThrottleDescription.ThrottleItem> patternHash
public ThrottleDescription(org.apache.manifoldcf.core.interfaces.ConfigParams configData)
throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionpublic int getMaxOpenConnections(java.lang.String binName)
getMaxOpenConnections in interface org.apache.manifoldcf.connectorcommon.interfaces.IThrottleSpecpublic double getMinimumMillisecondsPerByte(java.lang.String binName)
getMinimumMillisecondsPerByte in interface org.apache.manifoldcf.connectorcommon.interfaces.IThrottleSpecpublic long getMinimumMillisecondsPerFetch(java.lang.String binName)
getMinimumMillisecondsPerFetch in interface org.apache.manifoldcf.connectorcommon.interfaces.IThrottleSpec