CachedHistoryStorage@Public
@Unstable
public interface HistoryStorage
| Modifier and Type | Method | Description |
|---|---|---|
java.util.Map<org.apache.hadoop.mapreduce.v2.api.records.JobId,org.apache.hadoop.mapreduce.v2.app.job.Job> |
getAllPartialJobs() |
Get all of the cached jobs.
|
org.apache.hadoop.mapreduce.v2.app.job.Job |
getFullJob(org.apache.hadoop.mapreduce.v2.api.records.JobId jobId) |
Get a fully parsed job.
|
JobsInfo |
getPartialJobs(java.lang.Long offset,
java.lang.Long count,
java.lang.String user,
java.lang.String queue,
java.lang.Long sBegin,
java.lang.Long sEnd,
java.lang.Long fBegin,
java.lang.Long fEnd,
org.apache.hadoop.mapreduce.v2.api.records.JobState jobState) |
Look for a set of partial jobs.
|
void |
setHistoryFileManager(HistoryFileManager hsManager) |
Give the Storage a reference to a class that can be used to interact with
history files.
|
void setHistoryFileManager(HistoryFileManager hsManager)
hsManager - the class that is used to interact with history files.JobsInfo getPartialJobs(java.lang.Long offset, java.lang.Long count, java.lang.String user, java.lang.String queue, java.lang.Long sBegin, java.lang.Long sEnd, java.lang.Long fBegin, java.lang.Long fEnd, org.apache.hadoop.mapreduce.v2.api.records.JobState jobState)
offset - the offset into the list of jobs.count - the maximum number of jobs to return.user - only return jobs for the given user.queue - only return jobs for in the given queue.sBegin - only return Jobs that started on or after the given time.sEnd - only return Jobs that started on or before the given time.fBegin - only return Jobs that ended on or after the given time.fEnd - only return Jobs that ended on or before the given time.jobState - only return Jobs that are in the given job state.java.util.Map<org.apache.hadoop.mapreduce.v2.api.records.JobId,org.apache.hadoop.mapreduce.v2.app.job.Job> getAllPartialJobs()
org.apache.hadoop.mapreduce.v2.app.job.Job getFullJob(org.apache.hadoop.mapreduce.v2.api.records.JobId jobId)
jobId - the id of the jobCopyright © 2008–2025 Apache Software Foundation. All rights reserved.