|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ConcurrentDirectoryFactory
Created by The eXo Platform SAS.
Date:
| Method Summary | |
|---|---|
File |
createFile(File dir,
String filename,
int dirCount)
Create file with locking of dirCount parent directories. |
void |
removeDirectory(File dir,
int dirCount)
Try remove directory and parent directories. |
| Method Detail |
|---|
File createFile(File dir,
String filename,
int dirCount)
throws IOException,
TransactionLogException
dirCount parent directories.
dir - - parent directory of filefilename - - name of filedirCount - - count of parent directories that will be locked during
create file execution
IOException - - I/O Exception
TransactionLogException - - if file already exist, or file or it's
parent directory was not created (or not exist)
void removeDirectory(File dir,
int dirCount)
throws TransactionLogException
dirCount.
dir - - directory to remove.dirCount - - maximum count of removed directories. dir
counted to.
TransactionLogException - - if directory do not contain subfiles, but
was not removed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||