Class ChainStatePersisterImpl
java.lang.Object
com.atlassian.bamboo.chains.execution.ChainStatePersisterImpl
- All Implemented Interfaces:
ChainStatePersister
-
Constructor Summary
ConstructorsConstructorDescriptionChainStatePersisterImpl(@NotNull XStreamFactory xStreamFactory, @NotNull FeatureManager featureManager, @NotNull SecretEncryptionService secretEncryptionService) ChainStatePersisterImpl(@NotNull XStreamFactory xStreamFactory, @NotNull FeatureManager featureManager, @NotNull SecretEncryptionService secretEncryptionService, @NotNull File storagePath) -
Method Summary
Modifier and TypeMethodDescriptionvoidappendToJournal(@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 Details
-
ChainStatePersisterImpl
public ChainStatePersisterImpl(@NotNull @NotNull XStreamFactory xStreamFactory, @NotNull @NotNull FeatureManager featureManager, @NotNull @NotNull SecretEncryptionService secretEncryptionService) -
ChainStatePersisterImpl
public ChainStatePersisterImpl(@NotNull @NotNull XStreamFactory xStreamFactory, @NotNull @NotNull FeatureManager featureManager, @NotNull @NotNull SecretEncryptionService secretEncryptionService, @NotNull @NotNull File storagePath)
-
-
Method Details
-
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
Description copied from interface:ChainStatePersisterSave aChainStatein the storage- Specified by:
savein interfaceChainStatePersister
-
remove
Description copied from interface:ChainStatePersisterRemoveChainStatefrom the storage.- Specified by:
removein interfaceChainStatePersister- Parameters:
key-
-
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
-