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
|
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()
public void stop()
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 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 © 2018 Atlassian Software Systems Pty Ltd. All rights reserved.