|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.nutch.ndfs.NDFSClient
NDFSClient does what's necessary to connect to a Nutch Filesystem and perform basic file tasks.
Field Summary | |
static Logger |
LOG
|
Constructor Summary | |
NDFSClient(InetSocketAddress namenode)
|
Method Summary | |
void |
close()
|
NFSOutputStream |
create(UTF8 src)
Create an output stream that writes to all the right places. |
NFSOutputStream |
create(UTF8 src,
boolean overwrite)
|
DatanodeInfo[] |
datanodeReport()
|
boolean |
delete(UTF8 src)
Make a direct connection to namenode and manipulate structures there. |
boolean |
exists(UTF8 src)
|
boolean |
isDirectory(UTF8 src)
|
NDFSFileInfo[] |
listFiles(UTF8 src)
|
void |
lock(UTF8 src,
boolean exclusive)
|
boolean |
mkdirs(UTF8 src)
|
NFSInputStream |
open(UTF8 src)
Create an input stream that obtains a nodelist from the namenode, and then reads from all the right places. |
void |
release(UTF8 src)
|
boolean |
rename(UTF8 src,
UTF8 dst)
Make a direct connection to namenode and manipulate structures there. |
long |
totalRawCapacity()
|
long |
totalRawUsed()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final Logger LOG
Constructor Detail |
public NDFSClient(InetSocketAddress namenode)
Method Detail |
public void close() throws IOException
IOException
public NFSInputStream open(UTF8 src) throws IOException
IOException
public NFSOutputStream create(UTF8 src) throws IOException
IOException
public NFSOutputStream create(UTF8 src, boolean overwrite) throws IOException
IOException
public boolean rename(UTF8 src, UTF8 dst) throws IOException
IOException
public boolean delete(UTF8 src) throws IOException
IOException
public boolean exists(UTF8 src) throws IOException
IOException
public boolean isDirectory(UTF8 src) throws IOException
IOException
public NDFSFileInfo[] listFiles(UTF8 src) throws IOException
IOException
public long totalRawCapacity() throws IOException
IOException
public long totalRawUsed() throws IOException
IOException
public DatanodeInfo[] datanodeReport() throws IOException
IOException
public boolean mkdirs(UTF8 src) throws IOException
IOException
public void lock(UTF8 src, boolean exclusive) throws IOException
IOException
public void release(UTF8 src) throws IOException
IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |