|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object 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
|
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 |
---|
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 saveBuildResults(Buildable buildable, BuildResults buildResults) throws PersisterException
saveBuildResults
in interface BuildPersisterDecorator
buildable
- buildResults
- The results to save @throws PersisterException An error
PersisterException
public BuildResults loadBuildResults(java.lang.String planKey, java.lang.Integer buildNumber) throws PersisterException
loadBuildResults
in interface BuildPersisterDecorator
planKey
- buildNumber
- The build top load
PersisterException
- An errorpublic void deleteBuildResults(Buildable buildable, long buildNumber) throws PersisterException
deleteBuildResults
in interface BuildPersisterDecorator
buildable
- buildNumber
- The number of the build to delete @throws PersisterException A generic failure
PersisterException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |