|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.persister.CachedBuildPersisterDecorator
public class CachedBuildPersisterDecorator
Caches the builds so speed up performance and handle transient Build fields.
Constructor Summary | |
---|---|
CachedBuildPersisterDecorator(BuildPersisterDecorator parent)
|
Method Summary | |
---|---|
void |
deleteBuildResults(ImmutableBuildable buildable,
long buildNumber)
Remove a specific build build |
boolean |
isActive()
Indicates whether this is currently active. |
BuildResults |
loadBuildResults(String planKey,
Integer buildNumber)
Cache the build results so that the least used results get purged |
void |
saveBuildResults(ImmutableBuildable buildable,
BuildResults buildResults)
Simply pass this request onto the parent |
void |
start()
Loads the cache from the parent decorator on startup; |
void |
stop()
Stop the component and clean up any resources |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CachedBuildPersisterDecorator(BuildPersisterDecorator parent)
Method Detail |
---|
public void start() throws Exception
start
in interface Startable
Exception
- a generic failurepublic void stop() throws Exception
Startable
stop
in interface Startable
Exception
- A generic failurepublic boolean isActive()
Startable
Indicates whether this is currently active.
isActive
in interface Startable
true
if this is active, false
otherwise.public void deleteBuildResults(ImmutableBuildable buildable, long buildNumber) throws PersisterException
deleteBuildResults
in interface BuildPersisterDecorator
buildable
- buildNumber
- The build number
PersisterException
public void saveBuildResults(ImmutableBuildable buildable, BuildResults buildResults) throws PersisterException
saveBuildResults
in interface BuildPersisterDecorator
buildResults
- The build results to persist @throws PersisterException Failed to persist the build results
PersisterException
@Nullable public BuildResults loadBuildResults(String planKey, Integer buildNumber) throws PersisterException
loadBuildResults
in interface BuildPersisterDecorator
buildNumber
- The number of the build results we are interested in
PersisterException
- Failed to load the build results
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |