public abstract class JobAttempt extends Object
Modifier and Type | Field and Description |
---|---|
protected JobMasterClient |
mClient |
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.
|
protected abstract JobConfig |
getJobConfig() |
protected abstract void |
logCompleted() |
protected abstract void |
logFailed() |
protected abstract void |
logFailedAttempt(JobInfo jobInfo) |
boolean |
run()
Runs the job.
|
protected final JobMasterClient mClient
protected final RetryPolicy mRetryPolicy
protected JobAttempt(JobMasterClient client, RetryPolicy retryPolicy)
public boolean run()
public Status check()
protected abstract JobConfig getJobConfig()
protected abstract void logFailedAttempt(JobInfo jobInfo)
protected abstract void logFailed()
protected abstract void logCompleted()
Copyright © 2023. All Rights Reserved.