|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.knime.core.util.VMFileLocker
public final class VMFileLocker
Locks file exclusively for this VM - but accepts multiple locks within this VM.
| Field Summary | |
|---|---|
static String |
LOCK_FILE
filename of lock file. |
| Method Summary | |
|---|---|
static boolean |
isLockedForVM(File dir)
|
static boolean |
lockForVM(File dir)
Locks the specified directory (by creating a ".knimeLock" file and placing an exclusive lock on it). |
static void |
unlockForVM(File dir)
Unlocks the specified dir. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String LOCK_FILE
| Method Detail |
|---|
public static boolean lockForVM(File dir)
dir - to lock
public static void unlockForVM(File dir)
dir - to release one lock frompublic static boolean isLockedForVM(File dir)
dir - to test
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||