org.apache.nutch.ndfs
Class NDFS.NameNode
java.lang.Object
org.apache.nutch.ipc.Server
org.apache.nutch.ndfs.NDFS.NameNode
- Enclosing class:
- NDFS
- public static class NDFS.NameNode
- extends Server
NameNode controls two critical tables:
1) filename->blocksequence,version
2) block->machinelist
The first table is stored on disk and is very precious.
The second table is rebuilt every time the NameNode comes
up.
- Author:
- Mike Cafarella
Fields inherited from class org.apache.nutch.ipc.Server |
LOG |
Constructor Summary |
NDFS.NameNode()
Create a NameNode at the default location |
NDFS.NameNode(File dir,
int port)
Create a NameNode at the specified location |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NDFS.NameNode
public NDFS.NameNode()
throws IOException
- Create a NameNode at the default location
NDFS.NameNode
public NDFS.NameNode(File dir,
int port)
throws IOException
- Create a NameNode at the specified location
call
public Writable call(Writable param)
throws IOException
- This method implements the call invoked by client.
Return a Writable as the function return value.
- Specified by:
call
in class Server
- Throws:
IOException
main
public static void main(String[] argv)
throws IOException,
InterruptedException
- Throws:
IOException
InterruptedException
Copyright © 2006 The Apache Software Foundation