|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdk.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 boolean |
isNextLinkActive(long pageSize,
long totalResultsCount,
long endIndex)
Check if next link is active. |
static boolean |
isPreviousLinkActive(long pageSize,
long totalResultsCount,
long startIndex)
Check if previous link is active. |
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.
public static boolean isNextLinkActive(long pageSize, long totalResultsCount, long endIndex)
pageSize
- the size of the pagetotalResultsCount
- the number of results.endIndex
- the index of the last result shown on this page
public static boolean isPreviousLinkActive(long pageSize, long totalResultsCount, long startIndex)
pageSize
- the size of the pagetotalResultsCount
- the number of results.startIndex
- the index of the first result shown on this page
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |