Package org.apache.maven.buildcache
Interface RemoteCacheRepository
-
- All Superinterfaces:
CacheRepository
- All Known Implementing Classes:
RemoteCacheRepositoryImpl,RemoteCacheRepositoryNoOp
public interface RemoteCacheRepository extends CacheRepository
Remote cache repository.
-
-
Field Summary
Fields Modifier and Type Field Description static StringBUILDINFO_XMLstatic StringCACHE_REPORT_XML
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Optional<Build>findBaselineBuild(org.apache.maven.project.MavenProject project)booleangetArtifactContent(CacheContext context, Artifact artifact, Path target)Download an artifact to the given location.StringgetResourceUrl(CacheContext context, String filename)-
Methods inherited from interface org.apache.maven.buildcache.CacheRepository
findBuild, saveArtifactFile, saveBuildInfo, saveCacheReport
-
-
-
-
Field Detail
-
BUILDINFO_XML
static final String BUILDINFO_XML
- See Also:
- Constant Field Values
-
CACHE_REPORT_XML
static final String CACHE_REPORT_XML
- See Also:
- Constant Field Values
-
-
Method Detail
-
getArtifactContent
boolean getArtifactContent(CacheContext context, Artifact artifact, Path target) throws IOException
Download an artifact to the given location. Returnstrueif success,falseif the artifact does not exists and throws anIOExceptionif a problem occurs.- Throws:
IOException
-
getResourceUrl
@Nonnull String getResourceUrl(CacheContext context, String filename)
-
-