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 TypeMethodDescriptionvoid
protected Path
Provides access to the underlaying storage objectloadDeploymentEvents
(Target target) Loads the deployment events for the given target.void
saveDeploymentEvents
(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:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
Exception
-
getPath
-
loadDeploymentEvents
Description copied from interface:DeploymentEventsStore
Loads the deployment events for the given target.- Specified by:
loadDeploymentEvents
in 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:DeploymentEventsStore
Saves the deployment events for the given target.- Specified by:
saveDeploymentEvents
in 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:DeploymentEventsStore
Provides access to the underlaying storage object- Specified by:
getSource
in interfaceDeploymentEventsStore<Properties,
Path> - Parameters:
target
- the target- Returns:
- the storage object
-