public class DiffingConnector extends java.lang.Object implements Connector, ConnectorShutdownAware, Session
Connector interface.| Constructor and Description |
|---|
DiffingConnector(AuthorizationManager authorizationManager,
DocumentSnapshotRepositoryMonitorManager repositoryMonitorManager,
TraversalContextManager traversalContextManager)
Creates a DiffingConnector.
|
| Modifier and Type | Method and Description |
|---|---|
void |
delete()
Delete the snapshot and persistent storage for this connector.
|
AuthenticationManager |
getAuthenticationManager()
Gets an
AuthenticationManager. |
AuthorizationManager |
getAuthorizationManager()
Gets an
AuthorizationManager. |
TraversalManager |
getTraversalManager()
Creates and returns a
TraversalManager which can start and
resume traversals. |
Session |
login()
Gets a session with sufficient privileges to perform all actions related to
the SPI.
|
void |
shutdown()
Shut down this connector: interrupt the background threads and wait for
them to terminate.
|
public DiffingConnector(AuthorizationManager authorizationManager, DocumentSnapshotRepositoryMonitorManager repositoryMonitorManager, TraversalContextManager traversalContextManager)
authorizationManager - an AuthorizationManagerrepositoryMonitorManager - a DocumentSnapshotRepositoryMonitorManagertraversalContextManager - a TraversalContextManagerpublic void shutdown()
shutdown in interface ConnectorShutdownAwarepublic void delete()
delete in interface ConnectorShutdownAwarepublic Session login()
Connectorpublic AuthenticationManager getAuthenticationManager()
SessionAuthenticationManager. It is permissible to return
null. A null return means that this implementation does
not support an authentication manager. This may be for one of these
reasons:
getAuthenticationManager in interface SessionAuthenticationManager - may be nullpublic AuthorizationManager getAuthorizationManager()
SessionAuthorizationManager. It is permissible to return
null. A null return means that this implementation does
not support an authorization manager. This may be for one of these
reasons:
getAuthorizationManager in interface SessionAuthorizationManager - may be nullpublic TraversalManager getTraversalManager()
TraversalManager which can start and
resume traversals. Getting a traversal manager invalidates
previously acquired TraversalManagers. This operation
has the expense of stopping current crawls, forcing them
to be restarted (at initial or resume points) when further docs
are requested via returned TraversalManager.getTraversalManager in interface SessionTraversalManager