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 String
BUILDINFO_XML
static String
CACHE_REPORT_XML
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Optional<Build>
findBaselineBuild(org.apache.maven.project.MavenProject project)
boolean
getArtifactContent(CacheContext context, Artifact artifact, Path target)
Download an artifact to the given location.String
getResourceUrl(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. Returnstrue
if success,false
if the artifact does not exists and throws anIOException
if a problem occurs.- Throws:
IOException
-
getResourceUrl
@Nonnull String getResourceUrl(CacheContext context, String filename)
-
-