Class 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)  
    • 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
    • Constructor Detail

      • AbortChecker

        public AbortChecker​(org.apache.manifoldcf.crawler.interfaces.IAbortActivity activities)
    • Method Detail

      • abortCheck

        public long abortCheck()
                        throws org.apache.manifoldcf.connectorcommon.interfaces.BreakException,
                               java.lang.InterruptedException
        Specified by:
        abortCheck in interface org.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