Interface IJobStatus
-
- All Superinterfaces:
java.lang.Comparable<IJobStatus>
- All Known Implementing Classes:
JobStatus
public interface IJobStatus extends java.lang.Comparable<IJobStatus>
Interface defining the status information available for a job
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intcompareTo(@NotNull IJobStatus o)java.time.DurationgetDuration()fetches the current duration of the job, if job finished gives the total runtimejava.lang.StringgetFormattedDuration()Fetches the current duration of the job as a formatted string, if job finished gives the total runtimeintgetId()get the id of the jobstatusjava.lang.StringgetMessage()Returns the current status message for the jobfloatgetProgress()returns the current progress estimate for the job, between 0 and 1intgetProgressInt()returns the current progress estimate for the job, as percentage between 0 and 100java.time.InstantgetStartTime()returns the start time of the jobintgetStep()Fetches the current "step" for the job, the stage it is atbooleanisFinished()returns whether the job has finished
-
-
-
Method Detail
-
compareTo
int compareTo(@NotNull @NotNull IJobStatus o)- Specified by:
compareToin interfacejava.lang.Comparable<IJobStatus>
-
getDuration
java.time.Duration getDuration()
fetches the current duration of the job, if job finished gives the total runtime- Returns:
- duration
-
getFormattedDuration
java.lang.String getFormattedDuration()
Fetches the current duration of the job as a formatted string, if job finished gives the total runtime- Returns:
- duration as string
-
getId
int getId()
get the id of the jobstatus- Returns:
- id
-
getMessage
java.lang.String getMessage()
Returns the current status message for the job- Returns:
- message
-
getProgress
float getProgress()
returns the current progress estimate for the job, between 0 and 1- Returns:
- progress estimate
-
getProgressInt
int getProgressInt()
returns the current progress estimate for the job, as percentage between 0 and 100- Returns:
- progress estimate percentage
-
getStartTime
java.time.Instant getStartTime()
returns the start time of the job- Returns:
- start time
-
getStep
int getStep()
Fetches the current "step" for the job, the stage it is at- Returns:
- stage of job
-
isFinished
boolean isFinished()
returns whether the job has finished- Returns:
- finished
-
-