|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.manifoldcf.crawler.jobs.JobManager.ThrottleJobItem
protected static class JobManager.ThrottleJobItem
This class represents the information stored PER JOB in the throttling structure. In this structure, "remaining" counts are kept for each bin. When the bin becomes empty, then no more documents that would map to that bin will be returned, for this query. The way in which the maximum count per bin is determined is not part of this class.
| Field Summary | |
|---|---|
protected java.util.HashMap |
binCounts
This is a map of the bins and their current counts. |
protected java.util.ArrayList |
throttleLimits
These are the bin limits. |
| Constructor Summary | |
|---|---|
JobManager.ThrottleJobItem()
Constructor. |
|
| Method Summary | |
|---|---|
void |
addLimit(java.lang.String regexp,
int maxCount)
Add a bin limit. |
void |
decrement(java.lang.String binName)
Decrement specified bin. |
JobManager.ThrottleJobItem |
duplicate()
Create a duplicate of this item. |
protected int |
findMaxCount(java.lang.String binName)
Given a bin name, find the max value for it using the regexps that are in place. |
boolean |
isEmpty(java.lang.String binName)
Check if the specified bin is empty. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.ArrayList throttleLimits
protected java.util.HashMap binCounts
| Constructor Detail |
|---|
public JobManager.ThrottleJobItem()
| Method Detail |
|---|
public void addLimit(java.lang.String regexp,
int maxCount)
regexp - is the regular expression describing the bins to which the limit applies to.maxCount - is the maximum number of fetches allowed for that bin.public JobManager.ThrottleJobItem duplicate()
public boolean isEmpty(java.lang.String binName)
binName - is the bin name.
public void decrement(java.lang.String binName)
binName - is the bin name.protected int findMaxCount(java.lang.String binName)
binName - is the bin name.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||