Class ChainStatePersisterImpl
- java.lang.Object
-
- com.atlassian.bamboo.chains.execution.ChainStatePersisterImpl
-
- All Implemented Interfaces:
ChainStatePersister
public class ChainStatePersisterImpl extends Object implements ChainStatePersister
-
-
Constructor Summary
Constructors Constructor Description ChainStatePersisterImpl(@NotNull XStreamFactory xStreamFactory, @NotNull FeatureManager featureManager)ChainStatePersisterImpl(@NotNull XStreamFactory xStreamFactory, @NotNull FeatureManager featureManager, @NotNull File storagePath)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidappendToJournal(@NotNull PlanResultKey key, @NotNull ChainStateJournalEntry journalEntry)Append to journal for a key.@NotNull List<Pair<PlanResultKey,ChainState>>loadAndReplayAll(@NotNull Set<PlanResultKey> chainResultsToRestore)Loads stored objects matching provided keys and replays the journal on them.voidremove(@NotNull PlanResultKey key)RemoveChainStatefrom the storage.voidsave(@NotNull ChainState state)Save aChainStatein the storage
-
-
-
Constructor Detail
-
ChainStatePersisterImpl
public ChainStatePersisterImpl(@NotNull @NotNull XStreamFactory xStreamFactory, @NotNull @NotNull FeatureManager featureManager)
-
ChainStatePersisterImpl
public ChainStatePersisterImpl(@NotNull @NotNull XStreamFactory xStreamFactory, @NotNull @NotNull FeatureManager featureManager, @NotNull @NotNull File storagePath)
-
-
Method Detail
-
loadAndReplayAll
@NotNull public @NotNull List<Pair<PlanResultKey,ChainState>> loadAndReplayAll(@NotNull @NotNull Set<PlanResultKey> chainResultsToRestore)
Description copied from interface:ChainStatePersisterLoads stored objects matching provided keys and replays the journal on them. Removes all other journals.- Specified by:
loadAndReplayAllin interfaceChainStatePersister
-
save
public void save(@NotNull @NotNull ChainState state)Description copied from interface:ChainStatePersisterSave aChainStatein the storage- Specified by:
savein interfaceChainStatePersister
-
remove
public void remove(@NotNull @NotNull PlanResultKey key)Description copied from interface:ChainStatePersisterRemoveChainStatefrom the storage.- Specified by:
removein interfaceChainStatePersister
-
appendToJournal
public void appendToJournal(@NotNull @NotNull PlanResultKey key, @NotNull @NotNull ChainStateJournalEntry journalEntry)Description copied from interface:ChainStatePersisterAppend to journal for a key.- Specified by:
appendToJournalin interfaceChainStatePersister
-
-