Interface ContentFetcher
-
- All Known Implementing Classes:
RecoverableContentFetcher
public interface ContentFetcher
Author: Nikita.Skvortsov Date: 1/13/11
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
fetchCachedContentToFile(File cachedFile, File destination, String artifactUrl, ArtifactInfo artifactInfo)
Restore cached on the agent content to file.void
fetchContentToFile(File destination, String artifactUrl)
Download url target to file.void
interrupt()
Can be called from outside to interrupt fetching of a file content
-
-
-
Method Detail
-
fetchContentToFile
void fetchContentToFile(@NotNull File destination, @NotNull String artifactUrl) throws ResolvingFailedException
Download url target to file.- Parameters:
destination
- destination file.artifactUrl
-- Throws:
ResolvingFailedException
-
fetchCachedContentToFile
void fetchCachedContentToFile(@NotNull File cachedFile, @NotNull File destination, @NotNull String artifactUrl, @NotNull ArtifactInfo artifactInfo) throws IOException
Restore cached on the agent content to file.- Parameters:
cachedFile
- file that is cached on the agentdestination
- destination fileartifactUrl
- artifact locationartifactInfo
- information about the artifact- Throws:
IOException
-
interrupt
void interrupt()
Can be called from outside to interrupt fetching of a file content
-
-