Interface BuildPersisterDecorator
-
- All Superinterfaces:
Startable
- All Known Implementing Classes:
CachedBuildPersisterDecorator
,XStreamBuildPersister
public interface BuildPersisterDecorator extends Startable
This interface provides an abstract for persisting Bamboo builds objects.Implemented as decorators to chain caching and compression behaviour
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
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 Detail
-
deleteBuildResults
void deleteBuildResults(PlanKey planKey, long buildNumber) throws PersisterException
Remove a specific build result- Parameters:
planKey
-buildNumber
- The build number- Throws:
PersisterException
-
saveBuildResults
void saveBuildResults(PlanKey planKey, BuildResults buildResults) throws PersisterException
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
-
-