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