org.apache.nutch.ndfs
Class NDFS.NameNode

java.lang.Object
  extended byorg.apache.nutch.ipc.Server
      extended byorg.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

Field Summary
 
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
 
Method Summary
 Writable call(Writable param)
          This method implements the call invoked by client.
static void main(String[] argv)
           
 
Methods inherited from class org.apache.nutch.ipc.Server
join, setTimeout, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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

Method Detail

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