dk.netarkivet.harvester.webinterface
Class HarvestDefinitionGUI

java.lang.Object
  extended by dk.netarkivet.common.webinterface.GUIWebServer
      extended by dk.netarkivet.harvester.webinterface.HarvestDefinitionGUI
All Implemented Interfaces:
CleanupIF

public class HarvestDefinitionGUI
extends GUIWebServer

This class starts a HarvestScheduler and begins scheduling jobs. It also starts a GUI in which new Harvest definitions can be created. Note that this special gui application is really a "hack" to make the webapplications share the same VM as the HarvestScheduler.


Field Summary
protected static org.apache.commons.logging.Log log
           
 
Fields inherited from class dk.netarkivet.common.webinterface.GUIWebServer
instance
 
Method Summary
 void cleanup()
          Closes the GUI webserver, and nullifies this instance quietly.
 void close()
          Closes the GUI webserver, stop scheduling, and nullifies this instance.
static HarvestDefinitionGUI getInstance()
          Returns the unique instance of this class.
 
Methods inherited from class dk.netarkivet.common.webinterface.GUIWebServer
startServer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static final org.apache.commons.logging.Log log
Method Detail

getInstance

public static HarvestDefinitionGUI getInstance()
Returns the unique instance of this class. If instance is new, starts a GUI web server and the scheduler.

Returns:
the instance
Throws:
IllegalState - if a GUI is started which is not a HarvestDefinitionGUI

close

public void close()
Closes the GUI webserver, stop scheduling, and nullifies this instance.


cleanup

public void cleanup()
Closes the GUI webserver, and nullifies this instance quietly.

Specified by:
cleanup in interface CleanupIF
Overrides:
cleanup in class GUIWebServer
See Also:
CleanupIF.cleanup()