| |
|
| java.lang.Object java.lang.Thread org.griphyn.vdl.util.LockFileSet
LockFileSet | public class LockFileSet extends Thread (Code) | | This class is a helper for the LockHelper . It maintains
the set of lock filenames in status locked. These files need to be
removed on exit. Thus, this class is implemented as a Singleton.
author: Jens-S. Vöckler author: Yong Zhao version: $Revision $ See Also: LockHelper |
Constructor Summary | |
protected | LockFileSet() The c'tor is protected in order to enforce the Singleton interface. |
Method Summary | |
public void | add(File f) Adds a file name to the set of lock filenames that need to be removed
on exit. | public static synchronized LockFileSet | instance() This is the only access to any LockFileSet object. | public void | remove(File f) Removes a filename from the set of lock filenames that get removed
on exit. | public void | run() This method should not be called directly. |
LockFileSet | protected LockFileSet()(Code) | | The c'tor is protected in order to enforce the Singleton interface.
|
add | public void add(File f)(Code) | | Adds a file name to the set of lock filenames that need to be removed
on exit.
Parameters: f - is a File instance nameing the lock filename. |
instance | public static synchronized LockFileSet instance()(Code) | | This is the only access to any LockFileSet object. It is a kind of
factory that produces just one instance for all.
the one and only instance of a LockFileSet. Always. |
remove | public void remove(File f)(Code) | | Removes a filename from the set of lock filenames that get removed
on exit.
Parameters: f - is a File instance of a filename to remove from the listof removable files (are you confused yet). |
run | public void run()(Code) | | This method should not be called directly. It will be invoked on exit
by the exit hook handler.
|
|
|
|