com.atlassian.bamboo.caching
Class DashboardCachingManagerImpl

java.lang.Object
  extended by com.atlassian.bamboo.caching.DashboardCachingManagerImpl
All Implemented Interfaces:
DashboardCachingManager

public class DashboardCachingManagerImpl
extends java.lang.Object
implements DashboardCachingManager


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

DashboardCachingManagerImpl

public DashboardCachingManagerImpl(BuildManager buildManager,
                                   ChainManager chainManager,
                                   PlanManager planManager)
Method Detail

getAllBuilds

@NotNull
public java.util.Collection<Build> getAllBuilds()
Description copied from interface: DashboardCachingManager
Returns all builds in the system

Specified by:
getAllBuilds in interface DashboardCachingManager
Returns:
all builds in the system, empty collection if none found

getAllBuildsUpdatedSince

public java.util.Collection<Build> getAllBuildsUpdatedSince(long systemTime)
Description copied from interface: DashboardCachingManager
Returns all builds since a given time

Specified by:
getAllBuildsUpdatedSince in interface DashboardCachingManager
Returns:

getPlan

public Plan getPlan(@NotNull
                    java.lang.String planKey)
Description copied from interface: DashboardCachingManager
Returns the cached plan for a given planKey

Specified by:
getPlan in interface DashboardCachingManager
Returns:

getBuild

public Build getBuild(@NotNull
                      java.lang.String buildKey)
Description copied from interface: DashboardCachingManager
Returns the cached Build for a given buildKey

Specified by:
getBuild in interface DashboardCachingManager
Returns:

getChain

public Chain getChain(@NotNull
                      java.lang.String chainKey)
Description copied from interface: DashboardCachingManager
Returns the cached chain for a given chainKey

Specified by:
getChain in interface DashboardCachingManager
Returns:

resetCache

public void resetCache()
Description copied from interface: DashboardCachingManager
Clears the cache

Specified by:
resetCache in interface DashboardCachingManager

getAllChains

@NotNull
public java.util.Collection<Chain> getAllChains()
Description copied from interface: DashboardCachingManager
Returns all chains in the system

Specified by:
getAllChains in interface DashboardCachingManager
Returns:
all chains in the system, empty collection if none found

updatePlanCache

public void updatePlanCache(@NotNull
                            java.lang.String planKey)
Description copied from interface: DashboardCachingManager
Refetches the passed plan key from the database

Specified by:
updatePlanCache in interface DashboardCachingManager
Parameters:
planKey - Key of the plan to be updated

removePlanFromCache

public void removePlanFromCache(@NotNull
                                java.lang.String planKey)
Description copied from interface: DashboardCachingManager
Removes the plan from the cache

Specified by:
removePlanFromCache in interface DashboardCachingManager
Parameters:
planKey - Key of the plan to be removed from cache


Copyright © 2010 Atlassian. All Rights Reserved.