ariba.util.io
Class FileLockManager
java.lang.Object
ariba.util.core.ObjectLockManager
ariba.util.io.FileLockManager
public class FileLockManager
- extends ObjectLockManager
Maintains a set of files that can be locked exclusively. The lock
is actually set on the file's underlying canonical path, not on
the File object. Thus, two File objects that reference the same
underlying file will resolve to the same lock. If there's an
exception when looking up the canonical path, then the underlying
uncanonical path is used.
Method Summary |
void |
lock(java.io.File file)
Sets a lock on the specified file. |
void |
unlock(java.io.File file)
Releases the lock on the specified file. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileLockManager
public FileLockManager()
lock
public void lock(java.io.File file)
- Sets a lock on the specified file.
- Parameters:
file
- - the file to lock
unlock
public void unlock(java.io.File file)
- Releases the lock on the specified file.
- Parameters:
file
- - the file lock should be released
AribaWeb User Interface Development Framework
Copyright © 2000-2014 Ariba, Inc. All Rights Reserved.