com.atlassian.bamboo.persister.file
Class XStreamBuildPersister

java.lang.Object
  extended by com.atlassian.bamboo.persister.file.XStreamBuildPersister
All Implemented Interfaces:
Startable, BuildPersisterDecorator

public class XStreamBuildPersister
extends java.lang.Object
implements BuildPersisterDecorator, Startable

This class provides an XStream implementation of the Bamboo BuildPersisterDecorator'er.


Field Summary
static java.lang.String BUILD_MAP_XML_FILE
           
static java.lang.String BUILD_XML_FILE
           
 
Constructor Summary
XStreamBuildPersister()
           
 
Method Summary
 void deleteBuildResults(Buildable buildable, long buildNumber)
          Remove the build files for the given build buildNumber.
 boolean isActive()
          Indicates whether this is currently active.
 BuildResults loadBuildResults(java.lang.String planKey, java.lang.Integer buildNumber)
          Load the build buildresults for the given build number
 void saveBuildResults(Buildable buildable, BuildResults buildResults)
          Save the build results
 void start()
          Load the build data file map.
 void stop()
          Do nothing!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BUILD_MAP_XML_FILE

public static final java.lang.String BUILD_MAP_XML_FILE
See Also:
Constant Field Values

BUILD_XML_FILE

public static final java.lang.String BUILD_XML_FILE
See Also:
Constant Field Values
Constructor Detail

XStreamBuildPersister

public XStreamBuildPersister()
Method Detail

start

public void start()
           throws java.lang.Exception
Load the build data file map.

Specified by:
start in interface Startable
Throws:
java.lang.Exception - A generic error

stop

public void stop()
          throws java.lang.Exception
Do nothing!

Specified by:
stop in interface Startable
Throws:
java.lang.Exception - A generic error.

isActive

public boolean isActive()
Description copied from interface: Startable

Indicates whether this is currently active.

Specified by:
isActive in interface Startable
Returns:
true if this is active, false otherwise.

saveBuildResults

public void saveBuildResults(Buildable buildable,
                             BuildResults buildResults)
                      throws PersisterException
Save the build results

Specified by:
saveBuildResults in interface BuildPersisterDecorator
Parameters:
buildable -
buildResults - The results to save @throws PersisterException An error
Throws:
PersisterException

loadBuildResults

public BuildResults loadBuildResults(java.lang.String planKey,
                                     java.lang.Integer buildNumber)
                              throws PersisterException
Load the build buildresults for the given build number

Specified by:
loadBuildResults in interface BuildPersisterDecorator
Parameters:
planKey -
buildNumber - The build top load
Returns:
The build results
Throws:
PersisterException - An error

deleteBuildResults

public void deleteBuildResults(Buildable buildable,
                               long buildNumber)
                        throws PersisterException
Remove the build files for the given build buildNumber.

Specified by:
deleteBuildResults in interface BuildPersisterDecorator
Parameters:
buildable -
buildNumber - The number of the build to delete @throws PersisterException A generic failure
Throws:
PersisterException


Copyright © 2010 Atlassian. All Rights Reserved.