Package jenkins.util.io
Class PathRemover
- java.lang.Object
-
- jenkins.util.io.PathRemover
-
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public class PathRemover extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfacePathRemover.PathCheckerstatic interfacePathRemover.RetryStrategy
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidforceRemoveDirectoryContents(Path path)voidforceRemoveFile(Path path)voidforceRemoveRecursive(Path path)static PathRemovernewFilteredRobustRemover(PathRemover.PathChecker pathChecker, int maxRetries, boolean gcAfterFailedRemove, long waitBetweenRetries)static PathRemovernewRemoverWithStrategy(PathRemover.RetryStrategy retryStrategy)static PathRemovernewSimpleRemover()
-
-
-
Method Detail
-
newSimpleRemover
public static PathRemover newSimpleRemover()
-
newRemoverWithStrategy
public static PathRemover newRemoverWithStrategy(@NonNull PathRemover.RetryStrategy retryStrategy)
-
newFilteredRobustRemover
public static PathRemover newFilteredRobustRemover(@NonNull PathRemover.PathChecker pathChecker, int maxRetries, boolean gcAfterFailedRemove, long waitBetweenRetries)
-
forceRemoveFile
public void forceRemoveFile(@NonNull Path path) throws IOException- Throws:
IOException
-
forceRemoveDirectoryContents
public void forceRemoveDirectoryContents(@NonNull Path path) throws IOException- Throws:
IOException
-
forceRemoveRecursive
public void forceRemoveRecursive(@NonNull Path path) throws IOException- Throws:
IOException
-
-