|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.persister.xstream.AbstractXStreamPersister com.atlassian.bamboo.persister.file.XStreamBuildPersister
public class XStreamBuildPersister
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
|
Fields inherited from class com.atlassian.bamboo.persister.xstream.AbstractXStreamPersister |
---|
myXstream |
Constructor Summary | |
---|---|
XStreamBuildPersister()
|
Method Summary | |
---|---|
void |
deleteBuild(Build build)
Remove the given build's persisted files |
void |
deleteBuildResults(Build build,
long buildNumber)
Remove the build files for the given build buildNumber. |
java.util.Iterator |
getBuildNames()
Obtain an iterator of the names of the currently persisted builds |
boolean |
isActive()
Indicates whether this is currently active. |
BuildResults |
loadBuildResults(Build build,
long buildNumber)
Load the build buildresults for the given build number |
java.util.Collection |
loadBuilds()
Get all the persisted builds |
Build |
loadBuilds(java.lang.String buildName)
Load the given build from an xml file. |
void |
saveBuild(Build build)
Save the supplied build |
void |
saveBuildResults(Build build,
BuildResults buildResults)
Save the build results |
void |
start()
Load the build data file map. |
void |
stop()
Do nothing! |
Methods inherited from class com.atlassian.bamboo.persister.xstream.AbstractXStreamPersister |
---|
fromXML, init, registerClassAlias, toXML |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String BUILD_MAP_XML_FILE
public static final java.lang.String BUILD_XML_FILE
Constructor Detail |
---|
public XStreamBuildPersister()
Method Detail |
---|
public void start() throws java.lang.Exception
start
in interface Startable
java.lang.Exception
- A generic errorpublic void stop() throws java.lang.Exception
stop
in interface Startable
java.lang.Exception
- A generic error.public boolean isActive()
Startable
Indicates whether this is currently active.
isActive
in interface Startable
true
if this is active, false
otherwise.public void saveBuild(Build build) throws PersisterException
saveBuild
in interface BuildPersisterDecorator
build
- The build to persist as XML
PersisterException
- Failed to persistpublic Build loadBuilds(java.lang.String buildName) throws PersisterException
loadBuilds
in interface BuildPersisterDecorator
buildName
- The build to load
PersisterException
- An error.public void saveBuildResults(Build build, BuildResults buildResults) throws PersisterException
saveBuildResults
in interface BuildPersisterDecorator
build
- Associate the build with this buildbuildResults
- The results to save
PersisterException
- An errorpublic BuildResults loadBuildResults(Build build, long buildNumber) throws PersisterException
loadBuildResults
in interface BuildPersisterDecorator
build
- The buildbuildNumber
- The build top load
PersisterException
- An errorpublic java.util.Iterator getBuildNames()
getBuildNames
in interface BuildPersisterDecorator
public void deleteBuild(Build build) throws PersisterException
deleteBuild
in interface BuildPersisterDecorator
build
- The build to zap
PersisterException
- Failed to persistpublic void deleteBuildResults(Build build, long buildNumber) throws PersisterException
deleteBuildResults
in interface BuildPersisterDecorator
build
- The build the build belongs tobuildNumber
- The number of the build to delete
PersisterException
- A generic failurepublic java.util.Collection loadBuilds() throws PersisterException
BuildPersisterDecorator
loadBuilds
in interface BuildPersisterDecorator
PersisterException
- Failed to load
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |