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(Buildable buildable, 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(Buildable buildable, 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(Buildable buildable,
                        long buildNumber)
                        throws PersisterException
Remove a specific build result

Parameters:
buildable -
buildNumber - The build number
Throws:
PersisterException

saveBuildResults

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

Parameters:
buildable -
buildResults - The build results to persist @throws PersisterException Failed to persist the build results
Throws:
PersisterException

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 © 2012 Atlassian. All Rights Reserved.