public abstract class RunningJobsInfoDAO extends Object implements DAO
StartedJobInfo
Modifier | Constructor and Description |
---|---|
protected |
RunningJobsInfoDAO()
Constructor used when creating singleton.
|
Modifier and Type | Method and Description |
---|---|
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,
String filterId)
Retrieve a frontier report from a job id and a given filter class.
|
abstract 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 Set<Long> |
getHistoryRecordIds()
Returns the ids of jobs for which history records exist, as an immutable set.
|
static RunningJobsInfoDAO |
getInstance()
Gets the JobDAO singleton.
|
abstract Map<String,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(String filterId,
InMemoryFrontierReport report,
Long jobId)
Store frontier report data to the persistent storage.
|
protected RunningJobsInfoDAO()
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 Map<String,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(String filterId, InMemoryFrontierReport report, Long jobId)
report
- the report to storefilterId
- the id of the filter that produced the reportjobId
- The ID of the harvestjob responsible for this reportpublic abstract String[] getFrontierReportFilterTypes()
FrontierReportFilter.getFilterId()
public abstract InMemoryFrontierReport getFrontierReport(long jobId, String filterId)
jobId
- the job idfilterId
- the id of the filter that produced the reportpublic abstract int deleteFrontierReports(long jobId)
jobId
- the job idpublic abstract Set<Long> getHistoryRecordIds()
Copyright © 2005–2016 The Royal Danish Library, the Danish State and University Library, the National Library of France and the Austrian National Library.. All rights reserved.