Class AgentArtifactCacheProviderImpl
- java.lang.Object
-
- jetbrains.buildServer.artifacts.impl.DirectoryCacheProviderImpl
-
- jetbrains.buildServer.agent.impl.cache.AgentArtifactCacheProviderImpl
-
- All Implemented Interfaces:
ArtifactCacheProvider
public class AgentArtifactCacheProviderImpl extends DirectoryCacheProviderImpl
Author: Nikita.Skvortsov Date: 2/25/11
-
-
Field Summary
-
Fields inherited from class jetbrains.buildServer.artifacts.impl.DirectoryCacheProviderImpl
myCacheDir, myDiskCache, myIsInitialized
-
-
Constructor Summary
Constructors Constructor Description AgentArtifactCacheProviderImpl(InternalPropertiesHolder propertiesHolder, EventDispatcher<AgentLifeCycleListener> agentDispatcher, DigestCalculator digestCalculator, CurrentBuildTrackerEx currentBuildTracker)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidconfigureCache(HttpDiskCache cache, InternalPropertiesHolder propertiesHolder)booleanenabledForCurrentBuild()FileCachegetHttpCache(URLContentRetriever transport)Get cache instance.LocalCachegetLocalCache()Get local cache interface.-
Methods inherited from class jetbrains.buildServer.artifacts.impl.DirectoryCacheProviderImpl
addListener, getCacheDir, init, removeListener
-
-
-
-
Constructor Detail
-
AgentArtifactCacheProviderImpl
public AgentArtifactCacheProviderImpl(@NotNull InternalPropertiesHolder propertiesHolder, @NotNull EventDispatcher<AgentLifeCycleListener> agentDispatcher, @NotNull DigestCalculator digestCalculator, @NotNull CurrentBuildTrackerEx currentBuildTracker)
-
-
Method Detail
-
getHttpCache
@Nullable public FileCache getHttpCache(@NotNull URLContentRetriever transport)
Description copied from interface:ArtifactCacheProviderGet cache instance. The instance will use given transport to get content and metadata- Specified by:
getHttpCachein interfaceArtifactCacheProvider- Overrides:
getHttpCachein classDirectoryCacheProviderImpl- Parameters:
transport- to retrieve content and metadata- Returns:
- cache instance or null if no instances are available
-
getLocalCache
@Nullable public LocalCache getLocalCache()
Description copied from interface:ArtifactCacheProviderGet local cache interface. Interface does not support retrieving content or validation check with digests on remote site.- Specified by:
getLocalCachein interfaceArtifactCacheProvider- Overrides:
getLocalCachein classDirectoryCacheProviderImpl- Returns:
- local cache interface or null if cache is not available
-
enabledForCurrentBuild
public boolean enabledForCurrentBuild()
- Specified by:
enabledForCurrentBuildin interfaceArtifactCacheProvider- Overrides:
enabledForCurrentBuildin classDirectoryCacheProviderImpl
-
configureCache
protected void configureCache(@NotNull HttpDiskCache cache, InternalPropertiesHolder propertiesHolder)
-
-