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.IBreakCheck
This 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.IAbortActivity
activities
protected org.apache.manifoldcf.core.interfaces.ManifoldCFException
mcfException
protected org.apache.manifoldcf.agents.interfaces.ServiceInterruption
serviceInterruption
-
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 long
abortCheck()
void
rethrowExceptions()
-
-
-
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:
abortCheck
in interfaceorg.apache.manifoldcf.connectorcommon.interfaces.IBreakCheck
- Throws:
org.apache.manifoldcf.connectorcommon.interfaces.BreakException
java.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.ManifoldCFException
org.apache.manifoldcf.agents.interfaces.ServiceInterruption
-
-