|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.nutch.util.NutchGenericFileSystem
net.nutch.util.NutchNFSFileSystem
NutchNFSFileSystem implements NutchFileSystem over the Network File System. We assume all participants are mounting the same drive.
Constructor Summary | |
NutchNFSFileSystem(File dbRoot,
boolean destructiveCopy)
Create the ShareSet automatically, and then go on to the regular constructor. |
|
NutchNFSFileSystem(File dbRoot,
ShareSet initShareSet,
boolean destructiveCopy)
Create a Nutch Filesystem at the indicated mounted directory. |
Method Summary | |
protected void |
copyFile(File srcFile,
String locMach,
String locStr,
String filename,
boolean overwrite)
Copy a file to the right place in the local dir, which assumes NFS-connectivity. |
protected void |
deleteFile(String locMach,
String locStr,
String filename)
Remove a file from its current location. |
void |
lockFile(String locMach,
String locStr,
String filename,
boolean exclusive)
Obtain a lock with the given info. |
void |
release(String locMach,
String locStr,
String filename)
Release the lock for the given NutchFile |
protected void |
renameFile(File srcFile,
String locMach,
String locStr,
String filename,
boolean overwrite)
Rename the existing file or dir to a new location |
Methods inherited from class net.nutch.util.NutchGenericFileSystem |
close, completeDir, delete, get, get, getWorkingFile, lock, put, release, renameTo |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public NutchNFSFileSystem(File dbRoot, boolean destructiveCopy) throws IOException
public NutchNFSFileSystem(File dbRoot, ShareSet initShareSet, boolean destructiveCopy) throws IOException
Method Detail |
public void lockFile(String locMach, String locStr, String filename, boolean exclusive) throws IOException
lockFile
in class NutchGenericFileSystem
IOException
public void release(String locMach, String locStr, String filename) throws IOException
release
in class NutchGenericFileSystem
IOException
protected void copyFile(File srcFile, String locMach, String locStr, String filename, boolean overwrite) throws IOException
copyFile
in class NutchGenericFileSystem
IOException
protected void deleteFile(String locMach, String locStr, String filename) throws IOException
deleteFile
in class NutchGenericFileSystem
IOException
protected void renameFile(File srcFile, String locMach, String locStr, String filename, boolean overwrite) throws IOException
renameFile
in class NutchGenericFileSystem
IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |