Package org.jvnet.hudson.test
Class TemporaryDirectoryAllocator
java.lang.Object
org.jvnet.hudson.test.TemporaryDirectoryAllocator
Allocates temporary directories and cleans it up at the end.
- Author:
- Kohsuke Kawaguchi
-
Constructor Summary
ConstructorDescriptionDeprecated. -
Method Summary
-
Constructor Details
-
TemporaryDirectoryAllocator
Deprecated. -
TemporaryDirectoryAllocator
public TemporaryDirectoryAllocator()
-
-
Method Details
-
allocate
Allocates a new empty temporary directory and returns it. This directory will be wiped out whenTemporaryDirectoryAllocator
gets disposed. When this method returns, the directory already exists.- Throws:
IOException
-
dispose
Deletes all allocated temporary directories.- Throws:
IOException
InterruptedException
-
disposeAsync
public void disposeAsync()Deletes all allocated temporary directories asynchronously.
-