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. The server sets up handlers for three kinds of indexes (as defined by RequestType): A CDX index, where each index is one file, gzip-compressed. A DEDUP_CRAWL_LOG index, where each index is multiple files, gzip-compressed, making up a Lucene index of non-HTML files. A FULL_CRAWL_LOG index, where each index is multiple files, gzip-compressed, making up a Lucene index of all files.


Constructor Summary
protected 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

protected 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