public abstract class SynchronizerCallback<SKey extends Key>
extends java.lang.Object
Constructor and Description |
---|
SynchronizerCallback() |
Modifier and Type | Method and Description |
---|---|
abstract void |
beginCleanUp(Connector connector)
called before the CleanUp process (DeletedDocument detection)
|
abstract void |
beginDocumentOperationExecution(DocumentOperation<SKey> operation,
java.lang.String threadName)
called when a DocumentOperation is going to be executed
|
abstract void |
beginEnumeratedFolderTreatment(Connector connector,
SourceEnumerator<SKey> sourceEnumerator,
SKey folderKey,
SKey fatherFolderKey,
FolderOperation<SKey> fatherOperation)
called when a FolderKey treatment begins
|
abstract void |
beginEnumeratedKeyTreatment(Connector connector,
SourceEnumerator<SKey> sourceEnumerator,
SyncedEntry prevKey,
FolderDeletionHelper deletionHelper,
SKey key,
SKey fatherFolderKey,
FolderOperation<SKey> fatherOperation)
called when a DocumentKey treatment begins
|
abstract void |
beginEnumeratedSourceEnumeration(Connector connector)
called before the Folder pipeline treatment begins
|
abstract void |
beginEnumeratedSourceSync(Connector connector)
Called when the global process of Enumerated sources synchronization begins
It includes the optional DeletedDocument detection (CleanUp), and the enumerations.
|
abstract void |
beginFolderOperationExecution(FolderOperation<SKey> operation,
java.lang.String threadName)
called when a FolderOperation is going to be executed
|
abstract void |
documentKeySkipped(EnumeratesFolderOperation<SKey> enumeratesFolderOperation,
SKey key)
callback on skipped document
|
abstract void |
endCleanUp(Connector connector)
called after the CleanUp process (DeletedDocument detection)
|
abstract void |
endEnumeratedFolderTreatment(Connector connector,
SourceEnumerator<SKey> sourceEnumerator,
SKey folderKey,
SKey fatherFolderKey,
FolderOperation<SKey> fatherOperation)
called when a FolderKey treatment ends
|
abstract void |
endEnumeratedKeyTreatment(Connector connector,
SourceEnumerator<SKey> sourceEnumerator,
SKey key,
SKey fatherFolderKey,
FolderOperation<SKey> fatherOperation) |
abstract void |
endEnumeratedSourceEnumeration(Connector connector)
called when the Folder pipeline treatment is over
but it may still remains some DocumentOperations in the Document pipeline
|
abstract void |
endEnumeratedSourceSync(Connector connector)
called when the global process of Enumerated sources synchronization ends
|
abstract void |
errorDocumentOperationExecution(DocumentOperation<SKey> operation,
java.lang.String threadName,
java.lang.Throwable e)
called when a FolderOperation execution throw an Exception
|
abstract void |
errorFolderOperationExecution(FolderOperation<SKey> operation,
java.lang.String threadName,
java.lang.Throwable e)
called when a FolderOperation execution throw an Exception
|
abstract boolean |
filterDocumentKey(EnumeratesFolderOperation<SKey> enumeratesFolderOperation,
SyncedEntry previousEntry,
SKey key)
called to offer the possibility to skip the Document's treatment
|
abstract boolean |
filterFolderKey(EnumeratesFolderOperation<SKey> enumeratesFolderOperation)
called to offer the possibility to skip the folder's treatment
|
abstract void |
folderKeySkipped(EnumeratesFolderOperation<SKey> enumeratesFolderOperation)
callback on skipped folder
|
abstract void |
successDocumentOperationExecution(DocumentOperation<SKey> operation,
java.lang.String threadName)
called when a DocumentOperation execution is finish without error
|
abstract void |
successFolderOperationExecution(FolderOperation<SKey> operation,
java.lang.String threadName)
called when a FolderOperation execution is finish without error
|
public abstract void beginEnumeratedSourceSync(Connector connector)
connector
- public abstract void endEnumeratedSourceSync(Connector connector)
connector
- public abstract void beginCleanUp(Connector connector)
connector
- public abstract void endCleanUp(Connector connector)
connector
- public abstract void beginEnumeratedSourceEnumeration(Connector connector)
connector
- public abstract void endEnumeratedSourceEnumeration(Connector connector)
connector
- public abstract void beginEnumeratedFolderTreatment(Connector connector, SourceEnumerator<SKey> sourceEnumerator, SKey folderKey, SKey fatherFolderKey, FolderOperation<SKey> fatherOperation)
connector
- sourceEnumerator
- The SourceEnumerator that produced the FolderKeyfolderKey
- The FolderKey treatedfatherFolderKey
- The father's FolderKeyfatherOperation
- The father FolderOperationpublic abstract void endEnumeratedFolderTreatment(Connector connector, SourceEnumerator<SKey> sourceEnumerator, SKey folderKey, SKey fatherFolderKey, FolderOperation<SKey> fatherOperation)
connector
- sourceEnumerator
- The SourceEnumerator that produced the FolderKeyfolderKey
- The FolderKey treatedfatherFolderKey
- The father's FolderKeyfatherOperation
- The father FolderOperationpublic abstract void beginEnumeratedKeyTreatment(Connector connector, SourceEnumerator<SKey> sourceEnumerator, SyncedEntry prevKey, FolderDeletionHelper deletionHelper, SKey key, SKey fatherFolderKey, FolderOperation<SKey> fatherOperation) throws java.lang.Exception
connector
- sourceEnumerator
- The SourceEnumerator that produced the FolderKeyprevKey
- The previous key this key is supposed to replace, null if noneThe
- deletion handler, null if none particular is provided by the connectorkey
- The DocumentKey treatedfatherFolderKey
- The FolderKey of the parent FolderfatherOperation
- The father FolderOperationjava.lang.Exception
public abstract void endEnumeratedKeyTreatment(Connector connector, SourceEnumerator<SKey> sourceEnumerator, SKey key, SKey fatherFolderKey, FolderOperation<SKey> fatherOperation)
connector
- sourceEnumerator
- The SourceEnumerator that produced the FolderKeykey
- The DocumentKey treatedfatherFolderKey
- The FolderKey of the parent FolderfatherOperation
- The father FolderOperationpublic abstract boolean filterFolderKey(EnumeratesFolderOperation<SKey> enumeratesFolderOperation)
enumeratesFolderOperation
- public abstract boolean filterDocumentKey(EnumeratesFolderOperation<SKey> enumeratesFolderOperation, SyncedEntry previousEntry, SKey key)
enumeratesFolderOperation
- key
- The DocumentKey to testpreviousEntry
- The previous entry corresponding to this key. null if nonepublic abstract void folderKeySkipped(EnumeratesFolderOperation<SKey> enumeratesFolderOperation)
enumeratesFolderOperation
- public abstract void documentKeySkipped(EnumeratesFolderOperation<SKey> enumeratesFolderOperation, SKey key)
enumeratesFolderOperation
- key
- public abstract void beginFolderOperationExecution(FolderOperation<SKey> operation, java.lang.String threadName)
operation
- threadName
- The thread in charge of the processingpublic abstract void successFolderOperationExecution(FolderOperation<SKey> operation, java.lang.String threadName)
operation
- threadName
- The thread in charge of the processingpublic abstract void errorFolderOperationExecution(FolderOperation<SKey> operation, java.lang.String threadName, java.lang.Throwable e)
operation
- threadName
- The thread in charge of the processinge
- The Exception thrown during executionpublic abstract void beginDocumentOperationExecution(DocumentOperation<SKey> operation, java.lang.String threadName)
operation
- threadName
- thread in charge of the processingpublic abstract void successDocumentOperationExecution(DocumentOperation<SKey> operation, java.lang.String threadName)
operation
- threadName
- thread in charge of the processingpublic abstract void errorDocumentOperationExecution(DocumentOperation<SKey> operation, java.lang.String threadName, java.lang.Throwable e)
operation
- threadName
- thread in charge of the processinge
- The Exception thrown during executionCopyright © 2013 Dassault Systèmes, All Rights Reserved.