Class SharedDriveConnector.ProcessDocumentsFilter

  • All Implemented Interfaces:
    jcifs.smb.SmbFileFilter
    Enclosing class:
    SharedDriveConnector

    protected class SharedDriveConnector.ProcessDocumentsFilter
    extends java.lang.Object
    implements jcifs.smb.SmbFileFilter
    This is the filter class that actually receives the files in batches. We do it this way so that the client won't run out of memory loading a huge directory.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.apache.manifoldcf.crawler.interfaces.IProcessActivity activities
      This is the activities object, where matching references will be logged
      protected org.apache.manifoldcf.core.interfaces.ManifoldCFException lcfException
      Exceptions that we saw.
      protected org.apache.manifoldcf.agents.interfaces.ServiceInterruption serviceInterruption  
      protected org.apache.manifoldcf.core.interfaces.Specification spec
      Document specification
    • Constructor Summary

      Constructors 
      Constructor Description
      ProcessDocumentsFilter​(org.apache.manifoldcf.crawler.interfaces.IProcessActivity activities, org.apache.manifoldcf.core.interfaces.Specification spec)
      Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean accept​(jcifs.smb.SmbFile f)
      Decide if we accept the file.
      void checkAndThrow()
      Check for exception, and throw if there is one
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • activities

        protected final org.apache.manifoldcf.crawler.interfaces.IProcessActivity activities
        This is the activities object, where matching references will be logged
      • spec

        protected final org.apache.manifoldcf.core.interfaces.Specification spec
        Document specification
      • lcfException

        protected org.apache.manifoldcf.core.interfaces.ManifoldCFException lcfException
        Exceptions that we saw. These are saved here so that they can be rethrown when done
      • serviceInterruption

        protected org.apache.manifoldcf.agents.interfaces.ServiceInterruption serviceInterruption
    • Constructor Detail

      • ProcessDocumentsFilter

        public ProcessDocumentsFilter​(org.apache.manifoldcf.crawler.interfaces.IProcessActivity activities,
                                      org.apache.manifoldcf.core.interfaces.Specification spec)
        Constructor
    • Method Detail

      • accept

        public boolean accept​(jcifs.smb.SmbFile f)
                       throws jcifs.smb.SmbException
        Decide if we accept the file. This is where we will actually do the work.
        Specified by:
        accept in interface jcifs.smb.SmbFileFilter
        Throws:
        jcifs.smb.SmbException
      • checkAndThrow

        public void checkAndThrow()
                           throws org.apache.manifoldcf.agents.interfaces.ServiceInterruption,
                                  org.apache.manifoldcf.core.interfaces.ManifoldCFException
        Check for exception, and throw if there is one
        Throws:
        org.apache.manifoldcf.agents.interfaces.ServiceInterruption
        org.apache.manifoldcf.core.interfaces.ManifoldCFException