dk.netarkivet.archive.indexserver
Class IndexServer

java.lang.Object
  extended by dk.netarkivet.archive.indexserver.IndexServer
All Implemented Interfaces:
CleanupIF

public class IndexServer
extends java.lang.Object
implements CleanupIF

Index server. Handles request for lucene indexes of crawl logs and cdx indexes of jobs, using two multifilebasedcache objects as handlers.


Constructor Summary
IndexServer()
          Instantiates the two handlers, and starts listening for requests.
 
Method Summary
 void cleanup()
          Close the server.
static IndexServer getInstance()
          Get the unique index server instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndexServer

public IndexServer()
Instantiates the two handlers, and starts listening for requests.

Method Detail

getInstance

public static IndexServer getInstance()
Get the unique index server instance.

Returns:
The instance;

cleanup

public void cleanup()
Close the server.

Specified by:
cleanup in interface CleanupIF