public abstract class JobAttempt extends Object
Modifier and Type | Field and Description |
---|---|
protected JobMasterClient |
mClient |
protected Set<String> |
mFailedFiles |
protected Set<JobInfo> |
mFailedTasks |
protected RetryPolicy |
mRetryPolicy |
Modifier | Constructor and Description |
---|---|
protected |
JobAttempt(JobMasterClient client,
RetryPolicy retryPolicy) |
Modifier and Type | Method and Description |
---|---|
Status |
check()
Returns the status of the job attempt.
|
Set<String> |
getFailedFiles()
Get failed files if there's any.
|
abstract JobConfig |
getJobConfig()
Get job config.
|
abstract int |
getSize()
Get how many files contained in job attempt.
|
protected abstract void |
logCompleted() |
protected abstract void |
logFailed() |
protected abstract void |
logFailedAttempt(JobInfo jobInfo) |
boolean |
run()
Runs the job.
|
protected abstract void |
setFailedFiles() |
protected final JobMasterClient mClient
protected final RetryPolicy mRetryPolicy
protected JobAttempt(JobMasterClient client, RetryPolicy retryPolicy)
public boolean run()
public Status check()
public abstract JobConfig getJobConfig()
public abstract int getSize()
public Set<String> getFailedFiles()
protected abstract void setFailedFiles()
protected abstract void logFailedAttempt(JobInfo jobInfo)
protected abstract void logFailed()
protected abstract void logCompleted()
Copyright © 2023. All Rights Reserved.