|
||||||||||
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(Build build,
long buildNumber)
Remove a specific build build |
boolean |
isActive()
Indicates whether this is currently active. |
BuildResults |
loadBuildResults(java.lang.String planKey,
java.lang.Integer buildNumber)
Cache the build results so that the least used results get purged |
void |
saveBuildResults(Build build,
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 java.lang.Exception
start
in interface Startable
java.lang.Exception
- a generic failurepublic void stop() throws java.lang.Exception
Startable
stop
in interface Startable
java.lang.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(Build build, long buildNumber) throws PersisterException
deleteBuildResults
in interface BuildPersisterDecorator
build
- The build the build belongs tobuildNumber
- The build number
PersisterException
public void saveBuildResults(Build build, BuildResults buildResults) throws PersisterException
saveBuildResults
in interface BuildPersisterDecorator
build
- The buildResults' buildbuildResults
- The build results to persist
PersisterException
- Failed to persist the build resultspublic BuildResults loadBuildResults(java.lang.String planKey, java.lang.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 |