1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.apache.maven.buildcache;
20
21 import java.util.List;
22 import java.util.Map;
23
24 import org.apache.maven.buildcache.artifact.ArtifactRestorationReport;
25 import org.apache.maven.execution.MavenSession;
26 import org.apache.maven.execution.MojoExecutionEvent;
27 import org.apache.maven.plugin.MojoExecution;
28 import org.apache.maven.project.MavenProject;
29
30
31
32
33 public interface CacheController {
34
35 CacheResult findCachedBuild(
36 MavenSession session, MavenProject project, List<MojoExecution> mojoExecutions, boolean skipCache);
37
38 ArtifactRestorationReport restoreProjectArtifacts(CacheResult cacheResult);
39
40 void save(
41 CacheResult cacheResult,
42 List<MojoExecution> mojoExecutions,
43 Map<String, MojoExecutionEvent> executionEvents);
44
45 boolean isForcedExecution(MavenProject project, MojoExecution execution);
46
47 void saveCacheReport(MavenSession session);
48 }