|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dk.netarkivet.harvester.webinterface.HarvestStatus
public class HarvestStatus
This page provides support for the HarvestStatus pages of the web interface.
Field Summary | |
---|---|
protected static org.apache.commons.logging.Log |
log
The logger to use. |
Constructor Summary | |
---|---|
HarvestStatus(long fullResultsCount,
java.util.List<JobStatusInfo> jobs)
Constructor for the HarvestStatus class. |
Method Summary | |
---|---|
long |
getFullResultsCount()
|
java.util.List<JobStatusInfo> |
getJobStatusInfo()
|
static HarvestStatus |
getjobStatusList(HarvestStatusQuery query)
Calculate list of job information to be shown. |
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. |
static void |
rejectFailedJob(javax.servlet.jsp.PageContext context,
I18n i18n,
java.lang.Long jobID)
Marks a failed job as rejected for resubmission. |
static void |
unrejectRejectedJob(javax.servlet.jsp.PageContext context,
I18n i18n,
java.lang.Long jobID)
Marks as failed. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final org.apache.commons.logging.Log log
Constructor Detail |
---|
public HarvestStatus(long fullResultsCount, java.util.List<JobStatusInfo> jobs)
fullResultsCount
- The total number of entries in the full resultsetjobs
- The list of jobsMethod Detail |
---|
public long getFullResultsCount()
public java.util.List<JobStatusInfo> getJobStatusInfo()
public static void processRequest(javax.servlet.jsp.PageContext context, I18n i18n) throws ForwardedToErrorPage
context
- The web context used for processingi18n
- The resource i18n context.
ForwardedToErrorPage
- If an error occurs that stops processing and forwards the
user to an error page.public static void rejectFailedJob(javax.servlet.jsp.PageContext context, I18n i18n, java.lang.Long jobID)
context
- the context for forwarding errorsi18n
- the internationalisation to usejobID
- the job to rejectpublic static void unrejectRejectedJob(javax.servlet.jsp.PageContext context, I18n i18n, java.lang.Long jobID)
context
- the context for forwarding errorsi18n
- the internationalisation to usejobID
- the job to unrejectpublic static java.lang.String makeHarvestRunLink(long harvestID, int harvestRun)
harvestID
- The ID of the harvestharvestRun
- The run # of the harvest (always 0 for snapshots)
public static HarvestStatus getjobStatusList(HarvestStatusQuery query)
query
- the query with its filters.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |