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 void
configureCache(HttpDiskCache cache, InternalPropertiesHolder propertiesHolder)
boolean
enabledForCurrentBuild()
FileCache
getHttpCache(URLContentRetriever transport)
Get cache instance.LocalCache
getLocalCache()
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:ArtifactCacheProvider
Get cache instance. The instance will use given transport to get content and metadata- Specified by:
getHttpCache
in interfaceArtifactCacheProvider
- Overrides:
getHttpCache
in 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:ArtifactCacheProvider
Get local cache interface. Interface does not support retrieving content or validation check with digests on remote site.- Specified by:
getLocalCache
in interfaceArtifactCacheProvider
- Overrides:
getLocalCache
in classDirectoryCacheProviderImpl
- Returns:
- local cache interface or null if cache is not available
-
enabledForCurrentBuild
public boolean enabledForCurrentBuild()
- Specified by:
enabledForCurrentBuild
in interfaceArtifactCacheProvider
- Overrides:
enabledForCurrentBuild
in classDirectoryCacheProviderImpl
-
configureCache
protected void configureCache(@NotNull HttpDiskCache cache, InternalPropertiesHolder propertiesHolder)
-
-