|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.caching.DashboardCachingManagerImpl
public class DashboardCachingManagerImpl
Constructor Summary | |
---|---|
DashboardCachingManagerImpl(BuildManager buildManager,
ChainManager chainManager,
PlanManager planManager)
|
Method Summary | |
---|---|
java.util.Collection<Build> |
getAllBuilds()
Returns all builds in the system |
java.util.Collection<Build> |
getAllBuildsUpdatedSince(long systemTime)
Returns all builds since a given time |
java.util.Collection<Chain> |
getAllChains()
Returns all chains in the system |
Build |
getBuild(java.lang.String buildKey)
Returns the cached Build for a given buildKey |
Chain |
getChain(java.lang.String chainKey)
Returns the cached chain for a given chainKey |
Plan |
getPlan(java.lang.String planKey)
Returns the cached plan for a given planKey |
void |
removePlanFromCache(java.lang.String planKey)
Removes the plan from the cache |
void |
resetCache()
Clears the cache |
void |
updatePlanCache(java.lang.String planKey)
Refetches the passed plan key from the database |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DashboardCachingManagerImpl(BuildManager buildManager, ChainManager chainManager, PlanManager planManager)
Method Detail |
---|
@NotNull public java.util.Collection<Build> getAllBuilds()
DashboardCachingManager
getAllBuilds
in interface DashboardCachingManager
public java.util.Collection<Build> getAllBuildsUpdatedSince(long systemTime)
DashboardCachingManager
getAllBuildsUpdatedSince
in interface DashboardCachingManager
public Plan getPlan(@NotNull java.lang.String planKey)
DashboardCachingManager
getPlan
in interface DashboardCachingManager
public Build getBuild(@NotNull java.lang.String buildKey)
DashboardCachingManager
getBuild
in interface DashboardCachingManager
public Chain getChain(@NotNull java.lang.String chainKey)
DashboardCachingManager
getChain
in interface DashboardCachingManager
public void resetCache()
DashboardCachingManager
resetCache
in interface DashboardCachingManager
@NotNull public java.util.Collection<Chain> getAllChains()
DashboardCachingManager
getAllChains
in interface DashboardCachingManager
public void updatePlanCache(@NotNull java.lang.String planKey)
DashboardCachingManager
updatePlanCache
in interface DashboardCachingManager
planKey
- Key of the plan to be updatedpublic void removePlanFromCache(@NotNull java.lang.String planKey)
DashboardCachingManager
removePlanFromCache
in interface DashboardCachingManager
planKey
- Key of the plan to be removed from cache
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |