org.apache.nutch.fs
Class TestClient

java.lang.Object
  extended byorg.apache.nutch.fs.TestClient

public class TestClient
extends Object

This class provides some NDFS administrative access.

Author:
Mike Cafarella

Constructor Summary
TestClient(NutchFileSystem nfs)
           
 
Method Summary
 void copy(String srcf, String dstf)
          Copy an NDFS file
 void delete(String srcf)
          Delete an NDFS file
 void du(String src)
           
 void ls(String src)
          Get a listing of all files in NDFS at the indicated name
static void main(String[] argv)
          main() has some simple utility methods
 void mkdir(String src)
          Create the given dir
 void rename(String srcf, String dstf)
          Rename an NDFS file
 void report()
          Gives a report on how the NutchFileSystem is doing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestClient

public TestClient(NutchFileSystem nfs)
Method Detail

ls

public void ls(String src)
        throws IOException
Get a listing of all files in NDFS at the indicated name

Throws:
IOException

du

public void du(String src)
        throws IOException
Throws:
IOException

mkdir

public void mkdir(String src)
           throws IOException
Create the given dir

Throws:
IOException

rename

public void rename(String srcf,
                   String dstf)
            throws IOException
Rename an NDFS file

Throws:
IOException

copy

public void copy(String srcf,
                 String dstf)
          throws IOException
Copy an NDFS file

Throws:
IOException

delete

public void delete(String srcf)
            throws IOException
Delete an NDFS file

Throws:
IOException

report

public void report()
            throws IOException
Gives a report on how the NutchFileSystem is doing

Throws:
IOException

main

public static void main(String[] argv)
                 throws IOException
main() has some simple utility methods

Throws:
IOException


Copyright © 2006 The Apache Software Foundation