dk.netarkivet.harvester.webinterface
Class HarvestStatus

java.lang.Object
  extended by dk.netarkivet.harvester.webinterface.HarvestStatus

public class HarvestStatus
extends java.lang.Object

This page provides support for the HarvestStatus pages of the web interface.


Constructor Summary
HarvestStatus()
           
 
Method Summary
static java.lang.String makeHarvestRunLink(long harvestID, int harvestRun)
          Create a link to the harvest-run page for a given run
static void processRequest(javax.servlet.jsp.PageContext context, I18n i18n)
          Process a request from Harveststatus-alljobs.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HarvestStatus

public HarvestStatus()
Method Detail

processRequest

public static void processRequest(javax.servlet.jsp.PageContext context,
                                  I18n i18n)
                           throws ForwardedToErrorPage
Process a request from Harveststatus-alljobs. Will resubmit a job if requested, otherwise do nothing.

Parameters:
context - The web context used for processing
i18n - The resource i18n context.
Throws:
ForwardedToErrorPage - If an error occurs that stops processing and forwards the user to an error page.

makeHarvestRunLink

public static java.lang.String makeHarvestRunLink(long harvestID,
                                                  int harvestRun)
Create a link to the harvest-run page for a given run

Parameters:
harvestID - The ID of the harvest
harvestRun - The run # of the harvest (always 0 for snapshots)
Returns:
A properly encoded HTML string with a link and the harvest run as the text.