public class CmdRunAttempt
extends java.lang.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.
|
java.util.Set<java.lang.String> |
getFailedFiles()
Return a copy of failed paths.
|
long |
getFileCount()
Get file count.
|
java.lang.String |
getFilePath()
Set file path.
|
long |
getFileSize()
Get file size.
|
JobConfig |
getJobConfig()
Get job config.
|
java.lang.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(java.lang.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(java.lang.String filePath)
filePath - file pathpublic JobConfig getJobConfig()
public long getFileCount()
public long getFileSize()
public java.lang.String getFilePath()
public long getCreationTime()
public boolean run()
public java.lang.Long getJobId()
public Status checkJobStatus()
public void printFailed()
public java.util.Set<java.lang.String> getFailedFiles()
Copyright © 2024. All Rights Reserved.