|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jvnet.hudson.test.TemporaryDirectoryAllocator
public class TemporaryDirectoryAllocator
Allocates temporary directories and cleans it up at the end.
| Constructor Summary | |
|---|---|
TemporaryDirectoryAllocator()
|
|
TemporaryDirectoryAllocator(File base)
|
|
| Method Summary | |
|---|---|
File |
allocate()
Allocates a new empty temporary directory and returns it. |
void |
dispose()
Deletes all allocated temporary directories. |
void |
disposeAsync()
Deletes all allocated temporary directories asynchronously. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TemporaryDirectoryAllocator(File base)
public TemporaryDirectoryAllocator()
| Method Detail |
|---|
public File allocate()
throws IOException
TemporaryDirectoryAllocator gets disposed.
When this method returns, the directory already exists.
IOException
public void dispose()
throws IOException,
InterruptedException
IOException
InterruptedExceptionpublic void disposeAsync()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||