-
Notifications
You must be signed in to change notification settings - Fork 482
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement inMemeoryIdempotentExecutorExtension and update loader and …
…worker (#1210) * Bump version after publishing and remove the end /'s from the repository URLs * Implement inMemeoryIdempotentExecutorExtension and update loader and worker * Revert "Merge branch 'skippable2' of https://github.com/google/data-transfer-project into skippable2" This reverts commit 21dfbd9, reversing changes made to b90bf5b. --------- Co-authored-by: William Morland <[email protected]>
- Loading branch information
Showing
3 changed files
with
31 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
...ferproject/spi/transfer/idempotentexecutor/InMemoryIdempotentImportExecutorExtension.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package org.datatransferproject.spi.transfer.idempotentexecutor; | ||
|
||
import org.datatransferproject.api.launcher.ExtensionContext; | ||
import org.datatransferproject.api.launcher.Monitor; | ||
|
||
/** | ||
* ImMemory Implementation of IdempotentImportExecutor. | ||
*/ | ||
public class InMemoryIdempotentImportExecutorExtension | ||
implements IdempotentImportExecutorExtension { | ||
|
||
@Override | ||
public IdempotentImportExecutor getIdempotentImportExecutor(ExtensionContext extensionContext) { | ||
return new InMemoryIdempotentImportExecutor(extensionContext.getMonitor()); | ||
} | ||
|
||
@Override | ||
public void initialize() { | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters