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()
           
 
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
 Build getPlan(java.lang.String planKey)
          Returns the cached plan for a given planKey
 void removeBuildFromCache(java.lang.String buildKey)
          Removes the build from the cache
 void resetCache()
          Clears the cache
 void setBuildManager(BuildManager buildManager)
           
 void updateBuildCache(java.lang.String buildKey)
          Refetches the passed build 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()
Method Detail

getAllBuilds

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 Build 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:

resetCache

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

Specified by:
resetCache in interface DashboardCachingManager

updateBuildCache

public void updateBuildCache(java.lang.String buildKey)
Description copied from interface: DashboardCachingManager
Refetches the passed build key from the database

Specified by:
updateBuildCache in interface DashboardCachingManager
Parameters:
buildKey - -@NotNull

removeBuildFromCache

public void removeBuildFromCache(java.lang.String buildKey)
Description copied from interface: DashboardCachingManager
Removes the build from the cache

Specified by:
removeBuildFromCache in interface DashboardCachingManager
Parameters:
buildKey - - @notNull

setBuildManager

public void setBuildManager(BuildManager buildManager)


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.