net.nutch.fs
Class NDFS.NameNode

java.lang.Object
  extended bynet.nutch.ipc.Server
      extended bynet.nutch.fs.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 net.nutch.ipc.Server
LOG
 
Constructor Summary
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 net.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(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 © 2004 The Nutch Organization.