Save This Page
Home » nutch-1.0 » org.apache.nutch » util » [javadoc | source]
org.apache.nutch.util
public class: LockUtil [javadoc | source]
java.lang.Object
   org.apache.nutch.util.LockUtil
Utility methods for handling application-level locking.
Method from org.apache.nutch.util.LockUtil Summary:
createLockFile,   removeLockFile
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.nutch.util.LockUtil Detail:
 public static  void createLockFile(FileSystem fs,
    Path lockFile,
    boolean accept) throws IOException 
    Create a lock file.
 public static boolean removeLockFile(FileSystem fs,
    Path lockFile) throws IOException 
    Remove lock file. NOTE: applications enforce the semantics of this file - this method simply removes any file with a given name.