com.atlassian.bamboo.caching
Interface DashboardCachingManager

All Known Implementing Classes:
DashboardCachingManagerImpl

public interface DashboardCachingManager

INterface for viewing the dashboard. Should never be used for updates


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 updateBuildCache(java.lang.String buildKey)
          Refetches the passed build key from the database
 

Method Detail

getAllBuilds

java.util.Collection<Build> getAllBuilds()
Returns all builds in the system

Returns:
all builds in the system, empty collection if none found

resetCache

void resetCache()
Clears the cache


updateBuildCache

void updateBuildCache(java.lang.String buildKey)
Refetches the passed build key from the database

Parameters:
buildKey - -@NotNull

removeBuildFromCache

void removeBuildFromCache(java.lang.String buildKey)
Removes the build from the cache

Parameters:
buildKey - - @notNull

getAllBuildsUpdatedSince

java.util.Collection<Build> getAllBuildsUpdatedSince(long systemTime)
Returns all builds since a given time

Parameters:
systemTime -
Returns:

getPlan

Build getPlan(@NotNull
              java.lang.String planKey)
Returns the cached plan for a given planKey

Parameters:
planKey -
Returns:


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.