Modifier and Type | Field and Description |
---|---|
protected OptionalLong |
mEndTime |
protected String |
mJobId |
protected long |
mStartTime |
protected JobState |
mState |
protected Optional<String> |
mUser |
Constructor and Description |
---|
AbstractJob(Optional<String> user,
String jobId)
Creates a new instance of
AbstractJob . |
Modifier and Type | Method and Description |
---|---|
OptionalLong |
getEndTime()
Get end time.
|
String |
getJobId() |
JobState |
getJobState()
Get load status.
|
boolean |
isDone()
Check whether the job is finished.
|
boolean |
isRunning()
Check whether the job is still running.
|
void |
setEndTime(long time)
Update end time.
|
void |
setJobState(JobState state)
Set load state.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
failJob, getDescription, getNextTask, getProgress, initiateVerification, isCurrentPassDone, isHealthy, needVerification, processResponse, toJournalEntry, updateJob
protected final String mJobId
protected JobState mState
protected OptionalLong mEndTime
protected final long mStartTime
public AbstractJob(Optional<String> user, String jobId)
AbstractJob
.user
- the user who submitted the jobjobId
- the job idpublic String getJobId()
public OptionalLong getEndTime()
getEndTime
in interface Job<T extends Task<?>>
public void setEndTime(long time)
time
- time in mspublic JobState getJobState()
getJobState
in interface Job<T extends Task<?>>
public void setJobState(JobState state)
setJobState
in interface Job<T extends Task<?>>
state
- new statepublic boolean isRunning()
Job
Copyright © 2023. All Rights Reserved.