Interface BuildPersisterDecorator
- All Superinterfaces:
Startable
- All Known Implementing Classes:
CachedBuildPersisterDecorator
,XStreamBuildPersister
This interface provides an abstract for persisting Bamboo builds objects.
Implemented as decorators to chain caching and compression behaviour
-
Method Summary
Modifier and TypeMethodDescriptionvoid
deleteBuildResults
(PlanKey planKey, long buildNumber) Remove a specific build result@Nullable BuildResults
loadBuildResults
(Key planKey, int buildNumber) Load the given build's buildNumber'th build resultsvoid
saveBuildResults
(PlanKey planKey, BuildResults buildResults) Save the given build's given buildResults
-
Method Details
-
deleteBuildResults
Remove a specific build result- Parameters:
planKey
-buildNumber
- The build number- Throws:
PersisterException
-
saveBuildResults
Save the given build's given buildResults- Parameters:
planKey
-buildResults
- The build results to persist- Throws:
PersisterException
- when failed to persist the build results
-
loadBuildResults
@Nullable @Nullable BuildResults loadBuildResults(Key planKey, int buildNumber) throws PersisterException Load the given build's buildNumber'th build results- Parameters:
planKey
-buildNumber
- The number of the build results we are interested in- Returns:
- The buildResults
- Throws:
PersisterException
- when failed to load the build results
-