Class IndexServer
- java.lang.Object
-
- dk.netarkivet.harvester.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
Constructors Modifier Constructor Description protected
IndexServer()
Instantiates the two handlers, and starts listening for requests.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cleanup()
Close the server.static IndexServer
getInstance()
Get the unique index server instance.
-
-
-
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;
-
-