public class DiffingConnectorTraversalManager extends java.lang.Object implements TraversalManager, TraversalContextAware, TraversalScheduleAware
TraversalManager for the DiffingConnector.| Constructor and Description |
|---|
DiffingConnectorTraversalManager(DocumentSnapshotRepositoryMonitorManager snapshotRepositoryMonitorManager,
TraversalContextManager traversalContextManager)
Creates a
DiffingConnectorTraversalManager. |
| Modifier and Type | Method and Description |
|---|---|
void |
deactivate() |
boolean |
isActive()
Public for testing.
|
DocumentList |
resumeTraversal(java.lang.String checkpoint)
Continues traversal from a supplied checkpoint.
|
void |
setBatchHint(int batchHint)
Sets the preferred batch size.
|
void |
setTraversalContext(TraversalContext traversalContext)
Supplies a
TraversalContext object which the
TraversalManager can use to get various information
from the Connector Manager. |
void |
setTraversalSchedule(TraversalSchedule traversalSchedule)
Sets the
TraversalSchedule for this connector. |
DocumentList |
startTraversal()
Start document crawling and piping as if from beginning.
|
public DiffingConnectorTraversalManager(DocumentSnapshotRepositoryMonitorManager snapshotRepositoryMonitorManager, TraversalContextManager traversalContextManager)
DiffingConnectorTraversalManager.snapshotRepositoryMonitorManager - the
DocumentSnapshotRepositoryMonitorManager
for use accessing a ChangeSourcetraversalContextManager - TraversalContextManager
that holds the current TraversalContextpublic void setBatchHint(int batchHint)
TraversalManagersetBatchHint in interface TraversalManagerpublic DocumentList startTraversal() throws RepositoryException
startTraversal in interface TraversalManagernull if there are no documents.RepositoryException - if the Repository is unreachable or similar
exceptional condition.public DocumentList resumeTraversal(java.lang.String checkpoint) throws RepositoryException
TraversalManagerDocumentList.checkpoint() method. The
DocumentList object returns objects from the repository in natural order
starting just after the document that was used to create the checkpoint
string.resumeTraversal in interface TraversalManagercheckpoint - String that indicates from where to resume traversal.null if there are no documents.RepositoryExceptionpublic void setTraversalContext(TraversalContext traversalContext)
TraversalContextAwareTraversalContext object which the
TraversalManager can use to get various information
from the Connector Manager.setTraversalContext in interface TraversalContextAwaretraversalContext - the TraversalContextpublic void setTraversalSchedule(TraversalSchedule traversalSchedule)
TraversalScheduleAwareTraversalSchedule for this connector.setTraversalSchedule in interface TraversalScheduleAwaretraversalSchedule - the TraversalSchedulepublic void deactivate()
public boolean isActive()