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