Package org.craftercms.deployer.impl
Class ProcessedCommitsStoreImpl
java.lang.Object
org.craftercms.deployer.impl.ProcessedCommitsStoreImpl
- All Implemented Interfaces:
ProcessedCommitsStore
Default implementation of
ProcessedCommitsStore
that stores each commit ID in a file, and all commit ID files are stored
in a certain location in the filesystem.- Author:
- avasquez
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Deletes the stored commit ID for the specified target.protected File
getCommitFile
(String targetId) org.eclipse.jgit.lib.ObjectId
Loads the stored commit ID for the specified target.void
setStoreFolder
(File storeFolder) void
Stores the specified commit ID for the target.
-
Field Details
-
storeFolder
-
-
Constructor Details
-
ProcessedCommitsStoreImpl
public ProcessedCommitsStoreImpl()
-
-
Method Details
-
setStoreFolder
-
load
Description copied from interface:ProcessedCommitsStore
Loads the stored commit ID for the specified target.- Specified by:
load
in interfaceProcessedCommitsStore
- Parameters:
targetId
- the target's ID- Returns:
- the commit's
ObjectId
, or null if not found - Throws:
DeployerException
- if an error occurs
-
store
Description copied from interface:ProcessedCommitsStore
Stores the specified commit ID for the target.- Specified by:
store
in interfaceProcessedCommitsStore
- Parameters:
targetId
- the target's IDcommitId
- the commit'sObjectId
- Throws:
DeployerException
- if an error occurs
-
delete
Description copied from interface:ProcessedCommitsStore
Deletes the stored commit ID for the specified target.- Specified by:
delete
in interfaceProcessedCommitsStore
- Parameters:
targetId
- the target's ID- Throws:
DeployerException
- if an error occurs
-
getCommitFile
-