Package org.craftercms.deployer.impl
Interface ProcessorStateStore
- All Known Implementing Classes:
ProcessorStateStoreImpl
public interface ProcessorStateStore
Store that holds a state for a target processor
-
Method Summary
Modifier and TypeMethodDescriptionvoidDelete the state files directory for the specified target.Loads the stored state valuefor the specified target and processor.voidStores the specified value for the target and processor.
-
Method Details
-
load
Loads the stored state valuefor the specified target and processor.- Parameters:
targetId- the target's IDprocessorName- the processor's namesuffix- the suffix to use for the state file name- Returns:
- the stored state value, or null if not found
- Throws:
IOException- if an error occurs while reading the file
-
store
Stores the specified value for the target and processor.- Parameters:
targetId- the target's IDprocessorName- the processor's namesuffix- the suffix to use for the state file name- Throws:
IOException- if an error occurs while writing the file
-
delete
Delete the state files directory for the specified target.- Parameters:
targetId- the target's ID
-