|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dk.netarkivet.harvester.datamodel.RunningJobsInfoDAO
public abstract class RunningJobsInfoDAO
Abstract class for handling the persistence of running job infos.
StartedJobInfo
Constructor Summary | |
---|---|
protected |
RunningJobsInfoDAO()
Constructor used when creating singleton. |
Method Summary | |
---|---|
abstract int |
deleteFrontierReports(long jobId)
Deletes all frontier report data pertaining to the given job id from the persistent storage. |
abstract InMemoryFrontierReport |
getFrontierReport(long jobId,
java.lang.String filterId)
Retrieve a frontier report from a job id and a given filter class. |
abstract java.lang.String[] |
getFrontierReportFilterTypes()
Returns the list of the available frontier report types. |
abstract StartedJobInfo[] |
getFullJobHistory(long jobId)
Returns an array of all progress records chronologically sorted for the given job ID. |
abstract java.util.Set<java.lang.Long> |
getHistoryRecordIds()
Returns the ids of jobs for which history records exist, as an immutable set. |
static RunningJobsInfoDAO |
getInstance()
Gets the JobDAO singleton. |
abstract java.util.Map<java.lang.String,java.util.List<StartedJobInfo>> |
getMostRecentByHarvestName()
Returns the most recent record for every job, partitioned by harvest definition name. |
abstract StartedJobInfo |
getMostRecentByJobId(long jobId)
Returns the most recent progress record for the given job ID. |
abstract StartedJobInfo[] |
getMostRecentByJobId(long jobId,
long startTime,
int limit)
Returns an array of progress records chronologically sorted for the given job ID, starting at a given crawl time, and limited to a given number of records. |
abstract int |
removeInfoForJob(long jobId)
Removes all monitor and history records pertaining to the given job ID from the persistent storage. |
abstract void |
store(StartedJobInfo startedJobInfo)
Stores a StartedJobInfo record to the persistent storage. |
abstract int |
storeFrontierReport(java.lang.String filterId,
InMemoryFrontierReport report)
Store frontier report data to the persistent storage. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected RunningJobsInfoDAO()
Method Detail |
---|
public static RunningJobsInfoDAO getInstance()
public abstract void store(StartedJobInfo startedJobInfo)
StartedJobInfo
record to the persistent storage.
The record is stored in the monitor table, and if the elapsed time since
the last history sample is equal or superior to the history sample rate,
also to the history table.
startedJobInfo
- the record to store.public abstract java.util.Map<java.lang.String,java.util.List<StartedJobInfo>> getMostRecentByHarvestName()
public abstract StartedJobInfo[] getFullJobHistory(long jobId)
jobId
- the job id.
public abstract StartedJobInfo[] getMostRecentByJobId(long jobId, long startTime, int limit)
jobId
- the job id.startTime
- the crawl time (in seconds) to begin.limit
- the maximum number of records to fetch.
public abstract StartedJobInfo getMostRecentByJobId(long jobId)
jobId
- the job id.
public abstract int removeInfoForJob(long jobId)
jobId
- the job id.
public abstract int storeFrontierReport(java.lang.String filterId, InMemoryFrontierReport report)
report
- the report to storefilterId
- the id of the filter that produced the report
public abstract java.lang.String[] getFrontierReportFilterTypes()
FrontierReportFilter.getFilterId()
public abstract InMemoryFrontierReport getFrontierReport(long jobId, java.lang.String filterId)
jobId
- the job idfilterId
- the id of the filter that produced the report
public abstract int deleteFrontierReports(long jobId)
jobId
- the job id
public abstract java.util.Set<java.lang.Long> getHistoryRecordIds()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |