|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.manifoldcf.crawler.jobs.JobManager.ThrottleLimit
protected static class JobManager.ThrottleLimit
This class provides the throttling limits for the job queueing query.
| Field Summary | |
|---|---|
protected java.util.HashMap |
activeConnections
|
protected java.util.ArrayList |
blockingDocumentArray
|
protected java.util.HashMap |
connectionMap
|
protected int |
documentsProcessed
|
protected java.util.HashMap |
jobConnection
|
protected java.util.HashMap |
jobQueueHash
|
protected java.util.HashMap |
maxConnectionCounts
|
protected int |
maxSetSize
|
protected int |
n
|
protected long |
prioritizationTime
|
protected java.util.HashMap |
setSizes
|
| Fields inherited from interface org.apache.manifoldcf.core.interfaces.ILimitChecker |
|---|
_rcsid |
| Constructor Summary | |
|---|---|
JobManager.ThrottleLimit(int n,
long prioritizationTime)
Constructor. |
|
| Method Summary | |
|---|---|
void |
addConnectionName(java.lang.String connectionName,
IRepositoryConnector connectorInstance)
Add an active connection. |
void |
addJob(java.lang.Long jobID,
java.lang.String connectionName)
Add a job/connection name map entry. |
void |
addLimit(java.lang.String connectionName,
java.lang.String regexp,
int upperLimit)
Add a document limit for a specified connection. |
boolean |
checkContinue()
See if we should examine another row. |
boolean |
checkInclude(IResultRow row)
See if a result row should be included in the final result set. |
boolean |
doesCompareWork()
See if this class can be legitimately compared against another of the same type. |
ILimitChecker |
duplicate()
Create a duplicate of this class instance. |
boolean |
equals(java.lang.Object object)
Compare two objects and see if equal. |
int |
getRemainingDocuments()
Get the remaining documents we should query for. |
int |
hashCode()
Find the hashcode for this class. |
JobManager.ThrottleLimit |
makeDeepCopy()
Make a deep copy |
void |
setConnectionLimit(java.lang.String connectionName,
int maxDocuments)
Set a connection-based total document limit. |
void |
tallyBlockingDocuments(BlockingDocuments blockingDocuments)
Transfer blocking documents discovered to BlockingDocuments object |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.HashMap connectionMap
protected int n
protected java.util.HashMap jobQueueHash
protected java.util.HashMap jobConnection
protected java.util.HashMap activeConnections
protected java.util.HashMap setSizes
protected java.util.HashMap maxConnectionCounts
protected int maxSetSize
protected int documentsProcessed
protected java.util.ArrayList blockingDocumentArray
protected long prioritizationTime
| Constructor Detail |
|---|
public JobManager.ThrottleLimit(int n,
long prioritizationTime)
n - is the maximum number of full job descriptions we want at this time.| Method Detail |
|---|
public void tallyBlockingDocuments(BlockingDocuments blockingDocuments)
public void addJob(java.lang.Long jobID,
java.lang.String connectionName)
jobID - is the job id.connectionName - is the connection name.
public void addConnectionName(java.lang.String connectionName,
IRepositoryConnector connectorInstance)
throws ManifoldCFException
connectionName - is the connection name.
ManifoldCFException
public void addLimit(java.lang.String connectionName,
java.lang.String regexp,
int upperLimit)
connectionName - is the connection name.regexp - is the regular expression, which we will match against various bins.upperLimit - is the maximum count associated with the specified job.
public void setConnectionLimit(java.lang.String connectionName,
int maxDocuments)
public boolean doesCompareWork()
doesCompareWork in interface ILimitCheckerpublic ILimitChecker duplicate()
duplicate in interface ILimitCheckerpublic JobManager.ThrottleLimit makeDeepCopy()
public int hashCode()
hashCode in interface ILimitCheckerhashCode in class java.lang.Objectpublic boolean equals(java.lang.Object object)
equals in interface ILimitCheckerequals in class java.lang.Objectobject - is the object to compare against.
public int getRemainingDocuments()
public boolean checkInclude(IResultRow row)
throws ManifoldCFException
checkInclude in interface ILimitCheckerrow - is the result row to check.
ManifoldCFException
public boolean checkContinue()
throws ManifoldCFException
checkContinue in interface ILimitCheckerManifoldCFException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||