ariba.util.io
Class FileLockManager

java.lang.Object
  extended by ariba.util.core.ObjectLockManager
      extended by 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.


Constructor Summary
FileLockManager()
           
 
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 ariba.util.core.ObjectLockManager
lock, unlock
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileLockManager

public FileLockManager()
Method Detail

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.