Package org.gradle.profiler.mutations
Class AbstractCleanupMutator
java.lang.Object
org.gradle.profiler.mutations.AbstractCleanupMutator
- All Implemented Interfaces:
BuildMutator
- Direct Known Subclasses:
AbstractCacheCleanupMutator,ClearConfigurationCacheStateMutator,ClearGradleUserHomeMutator,ClearProjectCacheMutator
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumprotected static class -
Field Summary
Fields inherited from interface org.gradle.profiler.BuildMutator
NOOP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbeforeBuild(BuildContext context) Runs before starting an iteration of the build, after any potential cleanup has finished.voidbeforeCleanup(BuildContext context) Runs before each iteration if cleanup tasks are declared.voidbeforeScenario(ScenarioContext context) Runs before the first iteration of the scenario.protected abstract voidcleanup()protected static voidtoString()voidvalidate(BuildInvoker invoker) Validates if the mutator works with the given invoker.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.gradle.profiler.BuildMutator
afterBuild, afterCleanup, afterScenario
-
Constructor Details
-
AbstractCleanupMutator
-
-
Method Details
-
validate
Description copied from interface:BuildMutatorValidates if the mutator works with the given invoker.- Specified by:
validatein interfaceBuildMutator
-
beforeBuild
Description copied from interface:BuildMutatorRuns before starting an iteration of the build, after any potential cleanup has finished.- Specified by:
beforeBuildin interfaceBuildMutator
-
beforeScenario
Description copied from interface:BuildMutatorRuns before the first iteration of the scenario.- Specified by:
beforeScenarioin interfaceBuildMutator
-
beforeCleanup
Description copied from interface:BuildMutatorRuns before each iteration if cleanup tasks are declared.- Specified by:
beforeCleanupin interfaceBuildMutator
-
cleanup
protected abstract void cleanup() -
delete
-
toString
-