public abstract class GenericContainerMultiThreadedConnector<SKey extends com.exalead.papi.framework.source.adapter.Key> extends GenericMultiThreadedConnector<SKey>
GenericMultiThreadedConnector.EnumeratesFolderDeletionHelperClient
Connector.ConnectorNameThreadFactory
Modifier and Type | Field and Description |
---|---|
boolean |
m_HandleContainer
Handle containers
|
addDocumentOperationBuilderForFirstAdd, addDocumentOperationBuilderForNotModified, addDocumentOperationBuilderForUpdate, DEFAULT_LAST_UPDATE_CHECKPOINT_BEGIN, DEFAULT_LAST_UPDATE_CHECKPOINT_END, deletedDocumentOperationBuilder, doDelete, enumeratedPipelinesManager, isUpdate, last_update_checkpoint_begin, last_update_checkpoint_end, neverSendDeletes, processingQuota, pushFolder, sourceAdapterManager, sourceEnumerator, startKeys, syncEnumeratedError, synchronizerCallbackContainer, threadFactory
config, DEFAULT_SCAN_MODE, papi
Constructor and Description |
---|
GenericContainerMultiThreadedConnector(GenericContainerMultiThreadedConnectorConfig config)
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected void |
addRootKeyInPipelineManager(SKey root,
com.exalead.papi.framework.operations.builders.enumerated.EnumerableOperationBuilder<SKey> opBuilder,
com.exalead.papi.framework.operations.builders.enumerated.EnumerableOperationBuilder<SKey> opBuilderUpdate,
com.exalead.papi.framework.operations.builders.enumerated.EnumerableOperationBuilder<SKey> operationBuilderNotModified)
Add root key to operation (called by initializePipelinesManager())
|
protected com.exalead.papi.framework.operations.builders.enumerated.EnumerableOperationBuilder<SKey> |
buildAddDocumentOperationBuilderForFirstSync() |
protected com.exalead.papi.framework.operations.builders.enumerated.EnumerableOperationBuilder<SKey> |
buildAddDocumentOperationBuilderForUpdate()
Get AddDocumentOperationBuilder
|
com.exalead.papi.framework.operations.container.ContainerRecursiveProcessor<SKey> |
buildContainerRecursiveProcessor()
Build the ContainerRecursiveProcessor responsible for handling
containers.
|
Document |
fetch(java.lang.String uri,
java.lang.String[] securityTokens,
boolean checkSecurityTokens)
Fetch function.
|
static java.util.Map<java.lang.String,java.lang.String> |
getConnectorMetas(ConnectorInfoRequest infoRequest)
Get connector-specific metadata
|
abstract SKey |
getKeyFromUri(java.lang.String uri)
Get key from an URI
|
addDocumentOperationToEnumeratedOperationPipeline, addFolderOperationToEnumeratedOperationPipeline, addSynchronizerCallback, buildDeletedDocumentOperationBuilder, buildDeletionHelper, buildSourceAdapter, buildSourceEnumerator, buildSpecializedSourceAdapters, buildStartKeyFromConf, callBeforeDestruction, fetch, getActionToUpdate, getConnectorConfig, getCurrentPAPI, getDefaultThreadFactory, getDocumentSecurityTokens, getNbThreadsPerEnumeratedDocumentOperationPipeline, getNbThreadsPerEnumeratedFolderOperationPipeline, handleRootDeletes, init, initializePipelinesManager, isdoDelete, isPushFolder, isSynchronizeSourceEnumeratorsError, isUpdate, processActionToUpdate, registerDocInProgress, registerWorkInProgress, removeSynchronizerCallback, scan, setCurrentPAPI, setNbThreadsPerEnumeratedDocumentOperationPipeline, setNbThreadsPerEnumeratedFolderOperationPipeline, setNbThreadsPerEnumeratedOperationPipeline, setSynchronizeSourceEnumeratorsError, terminateThreads
checkAbortingOperation, checkAbortingOperation, checkDataSourceAvailability, checkSecurityTokens, getConnectorName, getEndpointBuilder, getLogger, getLogger, getScanModes, getState, getState, getStatus, getStatus, getStatusException, init, onScanAborted, onScanAborted, onScanResumed, onScanResumed, onScanSuspended, onScanSuspended, scratch, selfAbortScan, selfAbortScan, synchronizeDocuments
public GenericContainerMultiThreadedConnector(GenericContainerMultiThreadedConnectorConfig config) throws java.lang.Exception
java.lang.Exception
public abstract SKey getKeyFromUri(java.lang.String uri) throws java.io.IOException
getKeyFromUri
in class GenericMultiThreadedConnector<SKey extends com.exalead.papi.framework.source.adapter.Key>
uri
- the urijava.io.IOException
protected com.exalead.papi.framework.operations.builders.enumerated.EnumerableOperationBuilder<SKey> buildAddDocumentOperationBuilderForUpdate()
buildAddDocumentOperationBuilderForUpdate
in class GenericMultiThreadedConnector<SKey extends com.exalead.papi.framework.source.adapter.Key>
protected com.exalead.papi.framework.operations.builders.enumerated.EnumerableOperationBuilder<SKey> buildAddDocumentOperationBuilderForFirstSync()
buildAddDocumentOperationBuilderForFirstSync
in class GenericMultiThreadedConnector<SKey extends com.exalead.papi.framework.source.adapter.Key>
public com.exalead.papi.framework.operations.container.ContainerRecursiveProcessor<SKey> buildContainerRecursiveProcessor()
public Document fetch(java.lang.String uri, java.lang.String[] securityTokens, boolean checkSecurityTokens) throws java.lang.Exception
fetch
in class Connector
uri
- document identifier to retrievesecurityTokens
- Security tokens of the user querying the documentcheckSecurityTokens
- If true, then the connector must send
the document according to the security tokens given in parameters. For example the
connector must return null if the user does not have credentials enough to view it,
or only send the partial content the user is allowed to access.java.lang.Exception
- upon error.protected void addRootKeyInPipelineManager(SKey root, com.exalead.papi.framework.operations.builders.enumerated.EnumerableOperationBuilder<SKey> opBuilder, com.exalead.papi.framework.operations.builders.enumerated.EnumerableOperationBuilder<SKey> opBuilderUpdate, com.exalead.papi.framework.operations.builders.enumerated.EnumerableOperationBuilder<SKey> operationBuilderNotModified) throws java.lang.Exception
addRootKeyInPipelineManager
in class GenericMultiThreadedConnector<SKey extends com.exalead.papi.framework.source.adapter.Key>
java.lang.Exception
public static java.util.Map<java.lang.String,java.lang.String> getConnectorMetas(ConnectorInfoRequest infoRequest) throws java.lang.Exception
java.lang.Exception
Copyright © 2021 Dassault Systèmes, All Rights Reserved.