Class AbortChecker
- java.lang.Object
-
- org.apache.manifoldcf.crawler.connectors.webcrawler.AbortChecker
-
- All Implemented Interfaces:
org.apache.manifoldcf.connectorcommon.interfaces.IBreakCheck
public class AbortChecker extends java.lang.Object implements org.apache.manifoldcf.connectorcommon.interfaces.IBreakCheckThis class furnishes an abort signal whenever the job activity says it should. It should never be invoked from a background thread, only from a ManifoldCF thread.
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.manifoldcf.crawler.interfaces.IAbortActivityactivitiesprotected org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionmcfExceptionprotected org.apache.manifoldcf.agents.interfaces.ServiceInterruptionserviceInterruption
-
Constructor Summary
Constructors Constructor Description AbortChecker(org.apache.manifoldcf.crawler.interfaces.IAbortActivity activities)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longabortCheck()voidrethrowExceptions()
-
-
-
Field Detail
-
activities
protected final org.apache.manifoldcf.crawler.interfaces.IAbortActivity activities
-
serviceInterruption
protected org.apache.manifoldcf.agents.interfaces.ServiceInterruption serviceInterruption
-
mcfException
protected org.apache.manifoldcf.core.interfaces.ManifoldCFException mcfException
-
-
Method Detail
-
abortCheck
public long abortCheck() throws org.apache.manifoldcf.connectorcommon.interfaces.BreakException, java.lang.InterruptedException- Specified by:
abortCheckin interfaceorg.apache.manifoldcf.connectorcommon.interfaces.IBreakCheck- Throws:
org.apache.manifoldcf.connectorcommon.interfaces.BreakExceptionjava.lang.InterruptedException
-
rethrowExceptions
public void rethrowExceptions() throws org.apache.manifoldcf.core.interfaces.ManifoldCFException, org.apache.manifoldcf.agents.interfaces.ServiceInterruption- Throws:
org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionorg.apache.manifoldcf.agents.interfaces.ServiceInterruption
-
-