|
||||||||||
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(ImmutablePlanCacheService immutablePlanCacheService,
PlanDao planDao)
|
Method Summary | |
---|---|
java.util.List<ImmutableChain> |
getAllChains()
Returns all chains (including chain branches) in the system |
java.util.List<ImmutableTopLevelPlan> |
getAllTopLevelPlans()
Returns all top level plans (i.e. |
java.util.Collection<ImmutableTopLevelPlan> |
getAllTopLevelPlansUpdatedSince(long systemTime)
Returns all builds since a given time |
ImmutableChain |
getPlan(PlanKey planKey)
Returns the cached plan for a given planKey |
ImmutableChain |
getPlan(java.lang.String planKey)
|
void |
initCaches()
Initialises the caches |
void |
removePlanFromCache(PlanKey planKey)
Removes the plan from the cache |
void |
resetCache()
Clears the cache |
void |
updatePlanCache(java.util.Collection<PlanKey> planKeys)
Refetches the passed plan keys from the database |
void |
updatePlanCache(PlanKey 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(ImmutablePlanCacheService immutablePlanCacheService, PlanDao planDao)
Method Detail |
---|
@NotNull public java.util.List<ImmutableTopLevelPlan> getAllTopLevelPlans()
DashboardCachingManager
getAllTopLevelPlans
in interface DashboardCachingManager
@NotNull public java.util.List<ImmutableChain> getAllChains()
DashboardCachingManager
getAllChains
in interface DashboardCachingManager
public ImmutableChain getPlan(@NotNull PlanKey planKey)
DashboardCachingManager
getPlan
in interface DashboardCachingManager
public java.util.Collection<ImmutableTopLevelPlan> getAllTopLevelPlansUpdatedSince(long systemTime)
DashboardCachingManager
getAllTopLevelPlansUpdatedSince
in interface DashboardCachingManager
@Nullable public ImmutableChain getPlan(@NotNull java.lang.String planKey)
public void resetCache()
DashboardCachingManager
resetCache
in interface DashboardCachingManager
public void updatePlanCache(@NotNull PlanKey planKey)
DashboardCachingManager
updatePlanCache
in interface DashboardCachingManager
planKey
- Key of the plan to be updatedpublic void updatePlanCache(@NotNull java.util.Collection<PlanKey> planKeys)
DashboardCachingManager
updatePlanCache
in interface DashboardCachingManager
planKeys
- Keys of the plan to be updatedpublic void removePlanFromCache(@NotNull PlanKey planKey)
DashboardCachingManager
removePlanFromCache
in interface DashboardCachingManager
planKey
- Key of the plan to be removed from cachepublic void initCaches()
DashboardCachingManager
initCaches
in interface DashboardCachingManager
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |