| java.lang.Object org.griphyn.vdl.util.FcntlLock
Constructor Summary | |
public | FcntlLock(File f, boolean rw, boolean shared) Create a file lock on the given file.
Parameters: f - is the file name to lock. Parameters: rw - is true for read/write mode, which will create missingfiles. |
Method Summary | |
public void | done() Release the file lock acquired with this instance. | protected void | finalize() Releases all resource, if they were still active. |
FcntlLock | public FcntlLock(File f, boolean rw, boolean shared) throws FileNotFoundException, IOException(Code) | | Create a file lock on the given file.
Parameters: f - is the file name to lock. Parameters: rw - is true for read/write mode, which will create missingfiles. If false, read-only mode is used. Parameters: shared - is true for shared locks, false for exclusive locks. throws: FileNotFoundException - if the file was not found throws: IOException - if the lock could not be acquired |
done | public void done()(Code) | | Release the file lock acquired with this instance.
|
finalize | protected void finalize() throws Throwable(Code) | | Releases all resource, if they were still active.
|
|
|