com.atlassian.bamboo.persister.file
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
 void deleteBuildResults(Build build, long buildNumber)
          Remove a specific build result
 BuildResults loadBuildResults(java.lang.String planKey, java.lang.Integer buildNumber)
          Load the given build's buildNumber'th build results
 void saveBuildResults(Build build, BuildResults buildResults)
          Save the given build's given buildResults
 
Methods inherited from interface com.atlassian.bamboo.container.Startable
isActive, start, stop
 

Method Detail

deleteBuildResults

void deleteBuildResults(Build build,
                        long buildNumber)
                        throws PersisterException
Remove a specific build result

Parameters:
build - The build the result belongs to
buildNumber - The build number
Throws:
PersisterException

saveBuildResults

void saveBuildResults(Build build,
                      BuildResults buildResults)
                      throws PersisterException
Save the given build's given buildResults

Parameters:
build - The buildResults' build
buildResults - The build results to persist
Throws:
PersisterException - Failed to persist the build results

loadBuildResults

BuildResults loadBuildResults(java.lang.String planKey,
                              java.lang.Integer 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 - Failed to load the build results


Copyright © 2010 Atlassian. All Rights Reserved.