public class CmdRunAttempt extends Object
Modifier and Type | Field and Description |
---|---|
protected JobMaster |
mJobMaster |
protected RetryPolicy |
mRetryPolicy |
Modifier | Constructor and Description |
---|---|
protected |
CmdRunAttempt(RetryPolicy retryPolicy,
JobMaster jobMaster) |
Modifier and Type | Method and Description |
---|---|
Status |
checkJobStatus()
Returns the status of the job.
|
long |
getCreationTime()
Returns the job creation time.
|
Set<String> |
getFailedFiles()
Return a copy of failed paths.
|
long |
getFileCount()
Get file count.
|
String |
getFilePath()
Set file path.
|
long |
getFileSize()
Get file size.
|
JobConfig |
getJobConfig()
Get job config.
|
Long |
getJobId()
Returns the job Id.
|
void |
printFailed()
Log failed file information.
|
boolean |
run()
Runs the job.
|
void |
setConfig(JobConfig config)
Set job config.
|
void |
setFileCount(long fileCount)
Set file count.
|
void |
setFilePath(String filePath)
Set file path.
|
void |
setFileSize(long fileSize)
Set file size.
|
protected final RetryPolicy mRetryPolicy
protected final JobMaster mJobMaster
protected CmdRunAttempt(RetryPolicy retryPolicy, JobMaster jobMaster)
public void setConfig(JobConfig config)
config
- job configpublic void setFileCount(long fileCount)
fileCount
- file countpublic void setFileSize(long fileSize)
fileSize
- file sizepublic void setFilePath(String filePath)
filePath
- file pathpublic JobConfig getJobConfig()
public long getFileCount()
public long getFileSize()
public String getFilePath()
public long getCreationTime()
public boolean run()
public Long getJobId()
public Status checkJobStatus()
public void printFailed()
Copyright © 2023. All Rights Reserved.