|
|||||||||||
| 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.NutchRemoteFileSystem
NutchRemoteFileSystem implements the NutchFileSystem over machines that can be linked via some set of command-line args. (presumably 'scp').
| Constructor Summary | |
NutchRemoteFileSystem(File dbRoot,
ShareSet shareSet,
String cpTemplate,
String rmTemplate,
String mkdirTemplate)
The NutchRemoteFileSystem takes template-strings for its various needed commands, which may differ among installations. |
|
NutchRemoteFileSystem(File dbRoot,
String cpTemplate,
String rmTemplate,
String mkdirTemplate)
Create the ShareSet automatically, then do regular constructor. |
|
| Method Summary | |
protected void |
copyFile(File srcFile,
String locationMach,
String locationStr,
String nutchFileName,
boolean overwrite)
Copy a file from one place to another. |
protected void |
deleteFile(String locationMach,
String locationStr,
String nutchFileName)
Remove a file the given location. |
protected void |
lockFile(String locMach,
String locStr,
String filename,
boolean exclusive)
Currently unimplemented |
protected void |
release(String locMach,
String locStr,
String filename)
|
protected void |
renameFile(File srcFile,
String locMach,
String locStr,
String filename,
boolean overwrite)
|
| 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 NutchRemoteFileSystem(File dbRoot,
String cpTemplate,
String rmTemplate,
String mkdirTemplate)
throws IOException
public NutchRemoteFileSystem(File dbRoot,
ShareSet shareSet,
String cpTemplate,
String rmTemplate,
String mkdirTemplate)
throws IOException
| Method Detail |
protected void copyFile(File srcFile,
String locationMach,
String locationStr,
String nutchFileName,
boolean overwrite)
throws IOException
copyFile in class NutchGenericFileSystemIOException
protected void deleteFile(String locationMach,
String locationStr,
String nutchFileName)
throws IOException
deleteFile in class NutchGenericFileSystemIOException
protected void lockFile(String locMach,
String locStr,
String filename,
boolean exclusive)
throws IOException
lockFile in class NutchGenericFileSystemIOException
protected void release(String locMach,
String locStr,
String filename)
throws IOException
release in class NutchGenericFileSystemIOException
protected void renameFile(File srcFile,
String locMach,
String locStr,
String filename,
boolean overwrite)
throws IOException
renameFile in class NutchGenericFileSystemIOException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||