dk.netarkivet.harvester.indexserver
Interface IndexRequestServerInterface

All Known Implementing Classes:
IndexRequestServer, TestIndexRequestServer

public interface IndexRequestServerInterface

An interface for all IndexRequestServer implementations.


Method Summary
 void close()
          The operation to the close the IndexRequestServer.
 void setHandler(RequestType type, FileBasedCache<java.util.Set<java.lang.Long>> cache)
          Define a FileBasedCache class to handle the given type of requests.
 void start()
          The operation to the start the IndexRequestServer.
 

Method Detail

setHandler

void setHandler(RequestType type,
                FileBasedCache<java.util.Set<java.lang.Long>> cache)
Define a FileBasedCache class to handle the given type of requests.

Parameters:
type - a given request type
cache - the FileBasedCache class to handle this request type

start

void start()
The operation to the start the IndexRequestServer.


close

void close()
The operation to the close the IndexRequestServer. This closes all resources associated with the IndexRequestServer and shuts down the server.