Class FileBasedDeploymentEventsStore
java.lang.Object
org.craftercms.deployer.impl.events.FileBasedDeploymentEventsStore
- All Implemented Interfaces:
DeploymentEventsStore<Properties,,Path> org.springframework.beans.factory.InitializingBean
public class FileBasedDeploymentEventsStore
extends Object
implements DeploymentEventsStore<Properties,Path>, org.springframework.beans.factory.InitializingBean
Implementation of
DeploymentEventsStore that uses a file to store the events.- Since:
- 3.1.8
- Author:
- joseross
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected PathProvides access to the underlaying storage objectloadDeploymentEvents(Target target) Loads the deployment events for the given target.voidsaveDeploymentEvents(Target target, Properties deploymentEvents) Saves the deployment events for the given target.
-
Field Details
-
folderPath
The folder where all files are stored locally -
filePattern
The pattern used to generate the name of the files
-
-
Constructor Details
-
FileBasedDeploymentEventsStore
-
-
Method Details
-
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-
getPath
-
loadDeploymentEvents
Description copied from interface:DeploymentEventsStoreLoads the deployment events for the given target.- Specified by:
loadDeploymentEventsin interfaceDeploymentEventsStore<Properties,Path> - Parameters:
target- the target- Returns:
- the existing deployment events
- Throws:
DeployerException- if there is any error loading the deployment events
-
saveDeploymentEvents
public void saveDeploymentEvents(Target target, Properties deploymentEvents) throws DeployerException Description copied from interface:DeploymentEventsStoreSaves the deployment events for the given target.- Specified by:
saveDeploymentEventsin interfaceDeploymentEventsStore<Properties,Path> - Parameters:
target- the targetdeploymentEvents- the new deployment events- Throws:
DeployerException- if there is any error saving the deployment events
-
getSource
Description copied from interface:DeploymentEventsStoreProvides access to the underlaying storage object- Specified by:
getSourcein interfaceDeploymentEventsStore<Properties,Path> - Parameters:
target- the target- Returns:
- the storage object
-