Class SharedDriveConnector.ProcessDocumentsFilter
- java.lang.Object
-
- org.apache.manifoldcf.crawler.connectors.sharedrive.SharedDriveConnector.ProcessDocumentsFilter
-
- All Implemented Interfaces:
jcifs.smb.SmbFileFilter
- Enclosing class:
- SharedDriveConnector
protected class SharedDriveConnector.ProcessDocumentsFilter extends java.lang.Object implements jcifs.smb.SmbFileFilterThis 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.IProcessActivityactivitiesThis is the activities object, where matching references will be loggedprotected org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionlcfExceptionExceptions that we saw.protected org.apache.manifoldcf.agents.interfaces.ServiceInterruptionserviceInterruptionprotected org.apache.manifoldcf.core.interfaces.SpecificationspecDocument 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 booleanaccept(jcifs.smb.SmbFile f)Decide if we accept the file.voidcheckAndThrow()Check for exception, and throw if there is one
-
-
-
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
-
-
Method Detail
-
accept
public boolean accept(jcifs.smb.SmbFile f) throws jcifs.smb.SmbExceptionDecide if we accept the file. This is where we will actually do the work.- Specified by:
acceptin interfacejcifs.smb.SmbFileFilter- Throws:
jcifs.smb.SmbException
-
checkAndThrow
public void checkAndThrow() throws org.apache.manifoldcf.agents.interfaces.ServiceInterruption, org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionCheck for exception, and throw if there is one- Throws:
org.apache.manifoldcf.agents.interfaces.ServiceInterruptionorg.apache.manifoldcf.core.interfaces.ManifoldCFException
-
-