public class XStreamBuildPersister extends Object implements BuildPersisterDecorator, Startable
BuildPersisterDecorator
'er.Constructor and Description |
---|
XStreamBuildPersister(XStreamFactory xStreamFactory) |
Modifier and Type | Method and Description |
---|---|
void |
deleteBuildResults(ImmutableBuildable buildable,
long buildNumber)
Remove the build files for the given build buildNumber.
|
boolean |
isActive()
Indicates whether this is currently active.
|
BuildResults |
loadBuildResults(Key planKey,
int buildNumber)
Load the build buildresults for the given build number
|
BuildResults |
loadBuildResults(String planKey,
Integer buildNumber)
Deprecated.
since 5.11, use
loadBuildResults(Key, int) instead |
void |
saveBuildResults(ImmutableBuildable buildable,
BuildResults buildResults)
Save the build results
|
void |
start()
Load the build data file map.
|
void |
stop()
Do nothing!
|
public XStreamBuildPersister(XStreamFactory xStreamFactory)
public void start() throws Exception
public void stop() throws Exception
public boolean isActive()
Startable
Indicates whether this is currently active.
public void saveBuildResults(ImmutableBuildable buildable, BuildResults buildResults) throws PersisterException
saveBuildResults
in interface BuildPersisterDecorator
buildable
- buildResults
- The results to save @throws PersisterException An errorPersisterException
- when failed to persist the build results@Nullable @Deprecated public BuildResults loadBuildResults(String planKey, Integer buildNumber) throws PersisterException
loadBuildResults(Key, int)
insteadloadBuildResults
in interface BuildPersisterDecorator
planKey
- buildNumber
- The build to loadPersisterException
- An error@Nullable public BuildResults loadBuildResults(Key planKey, int buildNumber) throws PersisterException
loadBuildResults
in interface BuildPersisterDecorator
planKey
- buildNumber
- The build top loadPersisterException
- An errorpublic void deleteBuildResults(ImmutableBuildable buildable, long buildNumber) throws PersisterException
deleteBuildResults
in interface BuildPersisterDecorator
buildable
- buildNumber
- The number of the build to delete @throws PersisterException A generic failurePersisterException
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.